/* ====================================================================
   MEDFOCO • TEORIAS DA ENFERMAGEM • PÁGINA PRINCIPAL [mf_teorias]
   Visual da página (copiado do bloco HTML antigo, tudo dentro de .mf-teorias-home).
   As cores dos selos de categoria vêm de config-pagina.php ('categorias').
   ==================================================================== */

/* ====================================================================
   RESET, TOKENS E BASE VISUAL
   ==================================================================== */
.mf-teorias-home{
  --mf-blue:#123763;
  --mf-blue-dark:#0e2a4d;
  --mf-blue-deep:#081a31;
  --mf-blue-light:#9db8d6;
  --mf-blue-50:#eef4fb;
  --mf-blue-100:#d6e4f5;
  --mf-accent:#0f9ea8;
  --mf-accent-dark:#0c7f87;
  --mf-ink:#102033;
  --mf-text:#334155;
  --mf-muted:#64748b;
  --mf-line:#e2e8f0;
  --mf-bg:#f6f8fb;
  --mf-card:#ffffff;
  --mf-shadow:0 1px 3px rgba(15,23,42,.05),0 6px 20px rgba(15,23,42,.07);
  --mf-shadow-hover:0 8px 18px rgba(15,23,42,.10),0 22px 48px rgba(15,23,42,.14);
  --mf-radius:14px;
  --mf-radius-lg:20px;
  --mf-maxw:1180px;

  --t-classicas-bg:#eef4fb;
  --t-classicas-ink:#123763;
  --t-intermediarias-bg:#e7f8f6;
  --t-intermediarias-ink:#0f9ea8;
  --t-contemporaneas-bg:#f2eefe;
  --t-contemporaneas-ink:#7c3aed;
  --t-outras-bg:#fff7ed;
  --t-outras-ink:#ea580c;

  color:var(--mf-text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  box-sizing:border-box;
}
.mf-teorias-home *,
.mf-teorias-home *::before,
.mf-teorias-home *::after{box-sizing:border-box;}
.mf-teorias-home a,
.mf-teorias-home a:hover,
.mf-teorias-home a:visited,
.mf-teorias-home a:focus{text-decoration:none !important;color:inherit;}
.mf-teorias-home img{max-width:100%;display:block;}
.mf-teorias-home button,
.mf-teorias-home input{font:inherit;}
.mf-teorias-home .mf-wrap{max-width:var(--mf-maxw);margin:0 auto;padding:0 40px;}
@media(max-width:680px){.mf-teorias-home .mf-wrap{padding:0 18px;}}

/* ====================================================================
   HERO
   ==================================================================== */
.mf-teorias-home .mf-hero{
  background:linear-gradient(135deg,#123763 0%,#0e2a4d 48%,#081a31 100%);
  width:100%;
  position:relative;
  overflow:hidden;
  color:#fff;
  padding:36px 0 50px;
}
.mf-teorias-home .mf-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(650px 360px at 88% -10%,rgba(15,158,168,.30),transparent 58%),
    radial-gradient(480px 340px at 5% 115%,rgba(157,184,214,.22),transparent 58%);
}
.mf-teorias-home .mf-hero::after{
  content:"";
  position:absolute;
  right:-100px;
  top:-100px;
  pointer-events:none;
  width:400px;
  height:400px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 0 0 55px rgba(255,255,255,.04),inset 0 0 0 36px rgba(255,255,255,.04);
}
.mf-teorias-home .mf-hero .mf-wrap{position:relative;z-index:2;}
.mf-teorias-home .mf-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  font-size:12.5px;
  color:rgba(255,255,255,.75);
  margin-bottom:28px;
}
.mf-teorias-home .mf-breadcrumb a{color:rgba(255,255,255,.75);transition:color .2s;}
.mf-teorias-home .mf-breadcrumb a:hover{color:#fff;}
.mf-teorias-home .mf-breadcrumb .sep{opacity:.45;}
.mf-teorias-home .mf-breadcrumb .cur{color:#fff;font-weight:600;}
.mf-teorias-home .mf-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
  gap:36px;
  align-items:center;
}
.mf-teorias-home .mf-hero-tag{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:rgba(255,255,255,.13);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.20);
  padding:5px 13px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:14px;
  color:#fff;
}
.mf-teorias-home .mf-hero h1{
  font-size:clamp(32px,5vw,52px);
  line-height:1.05;
  margin:0 0 12px;
  color:#fff;
  font-weight:800;
  letter-spacing:-.02em;
}
.mf-teorias-home .mf-hero p.lead{
  font-size:clamp(14.5px,1.8vw,17px);
  color:rgba(255,255,255,.88);
  max-width:720px;
  margin:0 0 28px;
  line-height:1.58;
}
.mf-teorias-home .mf-hero-art{
  position:relative;
  min-height:310px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mf-teorias-home .mf-hero-art::before{
  content:"";
  position:absolute;
  width:330px;
  height:330px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(15,158,168,.22),rgba(255,255,255,.08));
  filter:blur(.2px);
}
.mf-teorias-home .mf-hero-card{
  position:relative;
  width:min(100%,420px);
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius:28px;
  padding:14px;
  box-shadow:0 24px 70px rgba(0,0,0,.23);
  transform:none;
  overflow:visible;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mf-teorias-home .mf-hero-card img{
  width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  border-radius:22px;
  filter:none;
  image-rendering:auto;
  transform:translateZ(0);
}
.mf-teorias-home .mf-hero-floating{
  position:static;
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  max-width:100%;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.96);
  color:var(--mf-ink);
  box-shadow:0 14px 34px rgba(15,23,42,.16);
  backdrop-filter:none;
}
.mf-teorias-home .mf-hero-floating i{
  width:36px;
  height:36px;
  border-radius:10px;
  background:var(--mf-blue-50);
  color:var(--mf-accent);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.mf-teorias-home .mf-hero-floating b{display:block;font-size:13px;line-height:1.15;color:var(--mf-ink);}
.mf-teorias-home .mf-hero-floating span{display:block;font-size:11px;color:var(--mf-muted);line-height:1.2;margin-top:2px;}

/* Busca do hero */
.mf-teorias-home .mf-search{position:relative;max-width:610px;margin-bottom:0;}
.mf-teorias-home .mf-search-box{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border-radius:13px;
  padding:5px 5px 5px 16px;
  box-shadow:0 12px 32px rgba(15,23,42,.24);
}
.mf-teorias-home .mf-search-box i{flex:0 0 auto;color:var(--mf-muted);font-size:16px;}
.mf-teorias-home .mf-search-box input{
  flex:1;
  border:none;
  outline:none;
  font-size:16px;
  color:var(--mf-ink);
  background:transparent;
  padding:10px 0;
  min-width:0;
}
.mf-teorias-home .mf-search-box input::placeholder{color:#94a3b8;}
.mf-teorias-home .mf-search-btn{
  background:var(--mf-blue);
  color:#fff;
  border:none;
  cursor:pointer;
  padding:9px 18px;
  border-radius:9px;
  font-weight:700;
  font-size:13.5px;
  transition:background .2s,transform .2s;
  white-space:nowrap;
}
.mf-teorias-home .mf-search-btn:hover{background:var(--mf-blue-dark);transform:translateY(-1px);}
.mf-teorias-home .mf-autocomplete{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:30;
  background:#fff;
  border-radius:13px;
  box-shadow:0 16px 44px rgba(15,23,42,.22);
  overflow:hidden;
  display:none;
  border:1px solid var(--mf-line);
  max-height:360px;
  overflow-y:auto;
}
.mf-teorias-home .mf-autocomplete.show{display:block;}
.mf-teorias-home .mf-ac-item{
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 15px;
  cursor:pointer;
  border-bottom:1px solid var(--mf-bg);
  transition:background .15s;
}
.mf-teorias-home .mf-ac-item:last-child{border-bottom:none;}
.mf-teorias-home .mf-ac-item:hover,
.mf-teorias-home .mf-ac-item.active{background:var(--mf-blue-50);}
.mf-teorias-home .mf-ac-item .dot{
  width:38px;
  height:38px;
  border-radius:10px;
  background:var(--mf-blue-50);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--mf-blue);
  flex:0 0 auto;
  overflow:hidden;
}
.mf-teorias-home .mf-ac-item .dot img{width:100%;height:100%;object-fit:cover;}
.mf-teorias-home .mf-ac-item .txt{display:flex;flex-direction:column;gap:1px;min-width:0;}
.mf-teorias-home .mf-ac-item .txt b{font-size:14px;font-weight:700;color:var(--mf-ink);line-height:1.25;}
.mf-teorias-home .mf-ac-item .txt small{font-size:11.5px;color:var(--mf-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mf-teorias-home .mf-ac-item .badge{
  margin-left:auto;
  flex:0 0 auto;
  font-size:9.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  padding:3px 7px;
  border-radius:999px;
}
.mf-teorias-home .mf-ac-item mark{background:var(--mf-blue-100);color:var(--mf-blue-dark);border-radius:3px;padding:0 2px;}
.mf-teorias-home .mf-ac-empty{padding:16px;text-align:center;color:var(--mf-muted);font-size:14px;}

/* Cards estatísticos */
.mf-teorias-home .mf-hero-stats{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}
.mf-teorias-home .mf-stat-card{
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:170px;
}
.mf-teorias-home .mf-stat-card .ico{
  width:38px;
  height:38px;
  border-radius:10px;
  background:rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.mf-teorias-home .mf-stat-card b{display:block;font-size:22px;color:#fff;font-weight:800;line-height:1;}
.mf-teorias-home .mf-stat-card span{font-size:11.5px;color:rgba(255,255,255,.78);margin-top:2px;display:block;}

/* ====================================================================
   MAIN, SEÇÕES E HEADERS
   ==================================================================== */
.mf-teorias-home .mf-main{background:var(--mf-bg);padding:48px 0 60px;width:100%;}
.mf-teorias-home .mf-block{margin-bottom:48px;}
.mf-teorias-home .mf-block:last-child{margin-bottom:0;}
.mf-teorias-home .mf-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px;
  flex-wrap:wrap;
}
.mf-teorias-home .mf-section-head .mf-head-left{display:flex;align-items:center;gap:11px;}
.mf-teorias-home .mf-section-head .mf-head-ico{
  width:40px;
  height:40px;
  border-radius:11px;
  flex:0 0 auto;
  background:var(--mf-blue-50);
  color:var(--mf-blue);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}
.mf-teorias-home .mf-section-head h2{
  font-size:clamp(20px,2.6vw,26px);
  color:var(--mf-ink);
  margin:0;
  font-weight:800;
}
.mf-teorias-home .mf-section-head .sub{font-size:13.5px;color:var(--mf-muted);margin-top:3px;}
.mf-teorias-home .mf-count-badge{
  font-size:12.5px;
  color:var(--mf-blue-dark);
  font-weight:700;
  background:var(--mf-blue-50);
  padding:5px 12px;
  border-radius:999px;
  white-space:nowrap;
}

/* ====================================================================
   CARDS DESTAQUE
   ==================================================================== */
.mf-teorias-home .mf-featured-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.mf-teorias-home .mf-featured-card{
  position:relative;
  background:var(--mf-card);
  border-radius:var(--mf-radius-lg);
  border:1px solid var(--mf-line);
  box-shadow:var(--mf-shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .25s cubic-bezier(.2,.7,.3,1),box-shadow .25s,border-color .25s;
}
.mf-teorias-home .mf-featured-card:hover{transform:translateY(-5px);box-shadow:var(--mf-shadow-hover);border-color:var(--mf-blue-light);}
.mf-teorias-home .mf-featured-img{position:relative;height:245px;background:var(--mf-blue-50);overflow:hidden;}
.mf-teorias-home .mf-featured-img img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .35s ease;}
.mf-teorias-home .mf-featured-card:hover .mf-featured-img img{transform:scale(1.045);}
.mf-teorias-home .mf-featured-img::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:55%;
  background:linear-gradient(to top,rgba(8,26,49,.72),transparent);
}
.mf-teorias-home .mf-featured-tag{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--mf-blue);
  font-size:11px;
  font-weight:800;
  box-shadow:0 8px 24px rgba(15,23,42,.16);
}
.mf-teorias-home .mf-featured-body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1;}
.mf-teorias-home .mf-featured-body h3{font-size:19px;line-height:1.22;color:var(--mf-ink);margin:0;font-weight:800;}
.mf-teorias-home .mf-featured-body .theory{font-size:13px;font-weight:800;color:var(--mf-accent);line-height:1.35;}
.mf-teorias-home .mf-featured-body p{
  font-size:12.5px;
  color:var(--mf-muted);
  margin:0;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.mf-teorias-home .mf-card-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:auto;
  padding-top:8px;
  font-size:13px;
  font-weight:800;
  color:var(--mf-blue);
}
.mf-teorias-home .mf-card-link svg{transition:transform .2s;}
.mf-teorias-home a:hover .mf-card-link svg{transform:translateX(3px);}

/* ====================================================================
   LAYOUT COM SIDEBAR + LISTAGEM
   ==================================================================== */
.mf-teorias-home .mf-content-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:22px;
  align-items:start;
}
.mf-teorias-home .mf-sidebar{
  grid-column:2;
  grid-row:1;
  position:sticky;
  top:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.mf-teorias-home .mf-side-card{
  background:#fff;
  border:1px solid var(--mf-line);
  border-radius:18px;
  box-shadow:var(--mf-shadow);
  padding:16px;
}
.mf-teorias-home .mf-side-card h3{
  font-size:15px;
  color:var(--mf-ink);
  margin:0 0 12px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
}
.mf-teorias-home .mf-side-card h3 i{color:var(--mf-accent);}
.mf-teorias-home .mf-filter-list{display:flex;flex-direction:column;gap:8px;}
.mf-teorias-home .mf-filter-btn{
  width:100%;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  border-radius:11px;
  color:var(--mf-text);
  transition:background .2s,border-color .2s,color .2s;
  text-align:left;
}
.mf-teorias-home .mf-filter-btn:hover{background:var(--mf-blue-50);color:var(--mf-blue);}
.mf-teorias-home .mf-filter-btn.active{background:var(--mf-blue);border-color:var(--mf-blue);color:#fff;}
.mf-teorias-home .mf-filter-btn .left{display:flex;align-items:center;gap:8px;min-width:0;}
.mf-teorias-home .mf-filter-dot{width:9px;height:9px;border-radius:999px;background:var(--mf-accent);flex:0 0 auto;}
.mf-teorias-home .mf-filter-btn small{font-size:11px;font-weight:800;opacity:.75;}
.mf-teorias-home .mf-sidebar-links{display:flex;flex-direction:column;gap:9px;}
.mf-teorias-home .mf-sidebar-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid var(--mf-bg);
  color:var(--mf-text);
  font-size:13px;
  font-weight:700;
}
.mf-teorias-home .mf-sidebar-links a:last-child{border-bottom:none;}
.mf-teorias-home .mf-sidebar-links a:hover{color:var(--mf-accent);}
.mf-teorias-home .mf-sidebar-links i{font-size:11px;color:var(--mf-muted);}

/* Barra de controle da listagem */
.mf-teorias-home .mf-list-panel{
  grid-column:1;
  grid-row:1;
  min-width:0;
}
.mf-teorias-home .mf-toolbar{
  background:#fff;
  border:1px solid var(--mf-line);
  box-shadow:var(--mf-shadow);
  border-radius:18px;
  padding:14px;
  margin-bottom:16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.mf-teorias-home .mf-inline-search{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--mf-bg);
  border:1px solid var(--mf-line);
  border-radius:12px;
  padding:0 12px;
}
.mf-teorias-home .mf-inline-search i{color:var(--mf-muted);font-size:14px;}
.mf-teorias-home .mf-inline-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  padding:11px 0;
  color:var(--mf-ink);
  font-size:14px;
}
.mf-teorias-home .mf-sort-select{
  border:1px solid var(--mf-line);
  background:#fff;
  color:var(--mf-text);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
  font-size:13px;
  font-weight:700;
}

/* Tabs móveis */
.mf-teorias-home .mf-mobile-tabs{
  display:none;
  gap:8px;
  padding:0 0 12px;
  margin-bottom:6px;
}
.mf-teorias-home .mf-mobile-tabs::-webkit-scrollbar{height:0;}
.mf-teorias-home .mf-mobile-tabs button{
  flex:0 0 auto;
  border:1px solid var(--mf-line);
  background:#fff;
  color:var(--mf-text);
  padding:9px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.mf-teorias-home .mf-mobile-tabs button.active{background:var(--mf-blue);border-color:var(--mf-blue);color:#fff;}

/* Grid principal de teorias */
.mf-teorias-home .mf-theory-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.mf-teorias-home .mf-theory-card{
  position:relative;
  background:#fff;
  border:1px solid var(--mf-line);
  border-radius:18px;
  box-shadow:var(--mf-shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width:0;
  transition:transform .25s cubic-bezier(.2,.7,.3,1),box-shadow .25s,border-color .25s;
}
.mf-teorias-home .mf-theory-card:hover{transform:translateY(-5px);box-shadow:var(--mf-shadow-hover);border-color:var(--mf-blue-light);}
.mf-teorias-home .mf-theory-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg,var(--mf-blue),var(--mf-accent));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s ease;
  z-index:2;
}
.mf-teorias-home .mf-theory-card:hover::before{transform:scaleX(1);}
.mf-teorias-home .mf-theory-img{
  height:220px;
  background:var(--mf-blue-50);
  overflow:hidden;
  position:relative;
}
.mf-teorias-home .mf-theory-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  transition:transform .35s ease,filter .35s ease;
}
.mf-teorias-home .mf-theory-card:hover .mf-theory-img img{transform:scale(1.045);filter:saturate(1.04);}
.mf-teorias-home .mf-tag{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  gap:6px;
  border-radius:999px;
  padding:4px 9px;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.mf-teorias-home .mf-tag.classicas{background:var(--t-classicas-bg);color:var(--t-classicas-ink);}
.mf-teorias-home .mf-tag.intermediarias{background:var(--t-intermediarias-bg);color:var(--t-intermediarias-ink);}
.mf-teorias-home .mf-tag.contemporaneas{background:var(--t-contemporaneas-bg);color:var(--t-contemporaneas-ink);}
.mf-teorias-home .mf-tag.outras{background:var(--t-outras-bg);color:var(--t-outras-ink);}
.mf-teorias-home .mf-theory-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.mf-teorias-home .mf-theory-body h3{
  color:var(--mf-ink);
  font-size:18px;
  line-height:1.22;
  margin:0;
  font-weight:800;
}
.mf-teorias-home .mf-theory-name{
  color:var(--mf-accent);
  font-size:13px;
  line-height:1.35;
  font-weight:800;
}
.mf-teorias-home .mf-theory-body p{
  margin:0;
  color:var(--mf-muted);
  font-size:12.5px;
  line-height:1.52;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.mf-teorias-home .mf-theory-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 16px 16px;
  margin-top:auto;
}
.mf-teorias-home .mf-read-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:var(--mf-blue);
  color:#fff !important;
  padding:9px 12px;
  border-radius:10px;
  font-size:12.5px;
  font-weight:800;
  transition:background .2s,transform .2s;
}
.mf-teorias-home .mf-theory-card:hover .mf-read-btn{background:var(--mf-accent-dark);transform:translateY(-1px);}
.mf-teorias-home .mf-mini-meta{
  color:var(--mf-muted);
  font-size:11.5px;
  display:inline-flex;
  align-items:center;
  gap:5px;
}

/* Mensagem vazia e paginação */
.mf-teorias-home .mf-empty{
  display:none;
  text-align:center;
  padding:38px 20px;
  background:#fff;
  border:1px dashed var(--mf-line);
  border-radius:18px;
  color:var(--mf-muted);
}
.mf-teorias-home .mf-empty i{font-size:28px;color:var(--mf-accent);margin-bottom:10px;display:block;}
.mf-teorias-home .mf-empty b{display:block;color:var(--mf-ink);font-size:18px;margin-bottom:4px;}
.mf-teorias-home .mf-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:24px auto 0;
  width:100%;
  text-align:center;
}
.mf-teorias-home .mf-pagination button{
  min-width:38px;
  height:38px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  border:1px solid var(--mf-line);
  background:#fff;
  color:var(--mf-blue);
  font-weight:800;
  cursor:pointer;
  transition:background .2s,border-color .2s,color .2s,transform .2s;
}
.mf-teorias-home .mf-pagination button:hover{transform:translateY(-1px);border-color:var(--mf-blue-light);}
.mf-teorias-home .mf-pagination button.active{background:var(--mf-blue);color:#fff;border-color:var(--mf-blue);}

/* ====================================================================
   BLOCOS EXPLICATIVOS / COMO USAR
   ==================================================================== */
.mf-teorias-home .mf-tools-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.mf-teorias-home .mf-tool-card{
  background:#fff;
  border:1px solid var(--mf-line);
  border-radius:18px;
  padding:18px;
  display:flex;
  gap:14px;
  align-items:flex-start;
  box-shadow:var(--mf-shadow);
  transition:transform .25s,box-shadow .25s,border-color .25s;
}
.mf-teorias-home .mf-tool-card:hover{transform:translateY(-4px);box-shadow:var(--mf-shadow-hover);border-color:var(--mf-blue-light);}
.mf-teorias-home .mf-tool-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  background:var(--mf-blue-50);
  color:var(--mf-blue);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  font-size:18px;
}
.mf-teorias-home .mf-tool-card h3{font-size:15px;color:var(--mf-ink);margin:0 0 4px;font-weight:800;line-height:1.25;}
.mf-teorias-home .mf-tool-card p{font-size:12.5px;color:var(--mf-muted);margin:0;line-height:1.45;}

.mf-teorias-home .mf-guide-banner{
  margin-top:20px;
  background:linear-gradient(135deg,#fff 0%,#f8fbff 100%);
  border:1px solid var(--mf-line);
  border-radius:22px;
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  box-shadow:var(--mf-shadow);
  overflow:hidden;
  position:relative;
}
.mf-teorias-home .mf-guide-banner::after{
  content:"";
  position:absolute;
  width:240px;
  height:240px;
  border-radius:50%;
  right:-95px;
  top:-120px;
  background:rgba(15,158,168,.10);
}
.mf-teorias-home .mf-guide-left{display:flex;align-items:flex-start;gap:16px;position:relative;z-index:2;}
.mf-teorias-home .mf-guide-icon{
  width:54px;
  height:54px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--mf-blue),var(--mf-accent));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  font-size:22px;
}
.mf-teorias-home .mf-guide-banner h3{margin:0 0 5px;color:var(--mf-ink);font-size:20px;font-weight:800;}
.mf-teorias-home .mf-guide-banner p{margin:0;color:var(--mf-muted);font-size:13.5px;line-height:1.55;max-width:760px;}
.mf-teorias-home .mf-guide-button{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--mf-blue);
  color:#fff !important;
  padding:12px 16px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
  transition:background .2s,transform .2s;
}
.mf-teorias-home .mf-guide-button:hover{background:var(--mf-accent-dark);transform:translateY(-1px);}

/* ====================================================================
   RESPONSIVIDADE
   ==================================================================== */
@media(max-width:1100px){
  .mf-teorias-home .mf-hero-grid{grid-template-columns:1fr;}
  .mf-teorias-home .mf-hero-art{display:none;}
  .mf-teorias-home .mf-featured-grid{grid-template-columns:repeat(2,1fr);}
  .mf-teorias-home .mf-content-layout{grid-template-columns:1fr;}
  .mf-teorias-home .mf-list-panel{grid-column:auto;}
  .mf-teorias-home .mf-sidebar{display:none;grid-column:auto;}
  .mf-teorias-home .mf-mobile-tabs{display:flex;}
  .mf-teorias-home .mf-theory-grid{grid-template-columns:repeat(2,1fr);}
  .mf-teorias-home .mf-tools-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:760px){
  .mf-teorias-home .mf-hero{padding:30px 0 42px;}
  .mf-teorias-home .mf-breadcrumb{margin-bottom:20px;}
  .mf-teorias-home .mf-search-box{padding-left:13px;}
  .mf-teorias-home .mf-search-btn{padding:9px 12px;font-size:12.5px;}
  .mf-teorias-home .mf-mobile-tabs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    overflow:visible;
    gap:8px;
  }
  .mf-teorias-home .mf-mobile-tabs button{
    width:100%;
    white-space:normal;
    text-align:center;
    justify-content:center;
    padding:9px 8px;
    font-size:11.5px;
  }
  .mf-teorias-home .mf-hero-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-top:24px;
  }
  .mf-teorias-home .mf-stat-card{
    min-width:0;
    width:100%;
    padding:10px 7px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:7px;
  }
  .mf-teorias-home .mf-stat-card .ico{
    width:32px;
    height:32px;
    border-radius:9px;
    font-size:13px;
  }
  .mf-teorias-home .mf-stat-card b{font-size:17px;}
  .mf-teorias-home .mf-stat-card span{font-size:10px;line-height:1.15;}
  .mf-teorias-home .mf-main{padding:38px 0 46px;}
  .mf-teorias-home .mf-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .mf-teorias-home .mf-featured-img{height:170px;}
  .mf-teorias-home .mf-featured-body{padding:13px;gap:6px;}
  .mf-teorias-home .mf-featured-body h3{font-size:15.5px;}
  .mf-teorias-home .mf-featured-body .theory{font-size:12px;}
  .mf-teorias-home .mf-featured-body p{font-size:11.5px;-webkit-line-clamp:3;}
  .mf-teorias-home .mf-featured-tag{font-size:9.5px;padding:4px 7px;left:8px;bottom:8px;}
  .mf-teorias-home .mf-toolbar{grid-template-columns:1fr;}
  .mf-teorias-home .mf-sort-select{width:100%;}
  .mf-teorias-home .mf-theory-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .mf-teorias-home .mf-theory-img{height:160px;}
  .mf-teorias-home .mf-theory-body{padding:13px;gap:6px;}
  .mf-teorias-home .mf-theory-body h3{font-size:15.5px;}
  .mf-teorias-home .mf-theory-name{font-size:12px;}
  .mf-teorias-home .mf-theory-body p{font-size:11.5px;-webkit-line-clamp:3;}
  .mf-teorias-home .mf-theory-footer{padding:0 13px 13px;align-items:flex-start;flex-direction:column;gap:8px;}
  .mf-teorias-home .mf-read-btn{font-size:11.5px;padding:8px 10px;}
  .mf-teorias-home .mf-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .mf-teorias-home .mf-tool-card{padding:13px;gap:10px;flex-direction:column;}
  .mf-teorias-home .mf-tool-icon{width:38px;height:38px;border-radius:11px;font-size:16px;}
  .mf-teorias-home .mf-tool-card h3{font-size:13.5px;}
  .mf-teorias-home .mf-tool-card p{font-size:11.5px;line-height:1.4;}
  .mf-teorias-home .mf-guide-banner{align-items:flex-start;flex-direction:column;padding:18px;}
  .mf-teorias-home .mf-guide-left{gap:13px;}
  .mf-teorias-home .mf-guide-icon{width:46px;height:46px;border-radius:14px;font-size:19px;}
  .mf-teorias-home .mf-guide-banner h3{font-size:17px;}
  .mf-teorias-home .mf-guide-button{width:100%;justify-content:center;}
}
@media(max-width:420px){
  .mf-teorias-home .mf-theory-grid{grid-template-columns:1fr;}
  .mf-teorias-home .mf-theory-img{height:230px;}
}

/* ====================================================================
   ACRÉSCIMOS DA VERSÃO EM ARQUIVOS (dica da lateral, "Em breve", acessos)
   ==================================================================== */
.mf-teorias-home .mf-side-tip{margin:0;color:var(--mf-muted);font-size:13px;line-height:1.5;}
.mf-teorias-home .mf-theory-card.is-soon{opacity:.82;}
.mf-teorias-home .mf-theory-card.is-soon:hover{transform:none;box-shadow:var(--mf-shadow);border-color:var(--mf-line);}
.mf-teorias-home .mf-theory-card.is-soon:hover::before{transform:scaleX(0);}
.mf-teorias-home .mf-theory-card.is-soon .mf-theory-img img{filter:grayscale(.35);}
.mf-teorias-home .mf-soon-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  background:rgba(255,255,255,.94);
  color:var(--mf-blue);
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
  padding:4px 9px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(15,23,42,.14);
}
.mf-teorias-home .mf-read-btn.is-soon,
.mf-teorias-home .mf-theory-card:hover .mf-read-btn.is-soon{background:var(--mf-blue-50);color:var(--mf-blue) !important;transform:none;cursor:default;}
.mf-teorias-home .mf-ac-item.is-soon{opacity:.8;}
