/* ============ Layout Global ============ */
body {
  background-color: #F8FAFC !important; /* Fundo cinza bem claro para o card branco flutuar */
}

/* ============ Design tokens ============ */
:root{
  --brand-900:#0C2856;
  --brand-800:#143C7D;
  --focus:#99B8FF;
  --ink-700:#5B6473;
  --ink-900:#292B2C;
  --card-border: rgba(12,40,86,.08);
  --shadow-1: 0 8px 24px rgba(0,0,0,.08);
  --shadow-2: 0 14px 32px rgba(12,40,86,.18);
}

/* ============ Navbar ============ */
.navbar-custom{
  background-color: var(--brand-900);
  padding-block: .4rem;
  position: sticky; top:0; z-index:1030;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.navbar-custom .container-fluid{
  max-width: 1200px; margin:0 auto; padding-inline:12px;
  display:flex; align-items:center; justify-content:space-between;
}
.navbar-custom img.logo-esquerda{
  height: 40px; width:auto; object-fit:contain; display:block;
}
.navbar-custom h2{
  font-family:'Jost',sans-serif;
  font-weight:700; letter-spacing:.2px; color:#fff;
  font-size: clamp(18px, 2.2vw, 24px);
}
.navbar-custom img{
  border:none !important; border-radius:0 !important;
  background:transparent !important; box-shadow:none !important;
}

/* ============ Imagens genéricas ============ */
img{ max-width:100%; height:auto; display:block; }

/* ============ Badges / Ícones ============
.mlk-type{
  display:inline-block; padding:6px 12px; border-radius:999px;
  background:#EAF2FF; color:var(--brand-900);
  font-weight:600; font-size:.85rem;
}
*/

.lockapp{ color:#B3261E; } .openapp{ color:#1E7D32; }

.mlk-header{
  display: flex;
  align-items: center;
  justify-content: center !important;
  gap: .5rem;
}

/* ============ Card ============ */
.card{
  width:100% !important; height:auto; position:relative;
  background:#fff; color:var(--ink-900);
  border:1px solid var(--card-border); border-radius:8px;
  box-shadow: var(--shadow-1);
  display:flex; flex-direction:column; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: rgba(12,40,86,.18); }
.card:focus-within{ outline:3px solid var(--focus); outline-offset:3px; }

.card-body{ display:flex; flex-direction:column; gap:.5rem; padding:10px; }

/* Título / descrição */
.card-name{
  font:600 1.125rem/1.3 'Jost',sans-serif;
  color:var(--brand-900); text-align:center; margin:.25rem 10px 0;
}
.card-description{
  color:var(--ink-700); font-size:.95rem; line-height:1.4; margin:.25rem 10px .5rem !important;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* Botão primário */
.mlk-btn-azul{
  background:var(--brand-900); color:#fff !important; font-weight:600;
  padding:10px 18px; border-radius:8px; transition: background-color .2s ease, box-shadow .2s ease, transform .05s ease;
}
.mlk-btn-azul:hover{ background:var(--brand-800); box-shadow:0 2px 0 rgba(0,0,0,.08); }
.mlk-btn-azul:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
.mlk-btn-azul:active{ transform: translateY(1px); }

/* Layout dos cards */
.row-cards{ display:flex; justify-content:center; }
.row-cards.row-cols-xxl-3 > *,
.row-cards.row-cols-xl-3  > *{ display:flex; }
.col-card{ max-width:450px; }

/* Oculta rodapé “Atualizado em” */
.card-footer{ display:none !important; }

/* Miniaturas */
.mlk-logo{ width:100%; display:flex; justify-content:center; }
.mlk-logo > img{ height:150px; width:233px; }

/* Filtros e lead */
.container .lead{ color:#4A5568; font-size:1.05rem; margin-bottom:.5rem; }
.container .row.mb-4.g-2{
  background:#fff; border:1px solid var(--card-border); border-radius:10px;
  padding:12px; box-shadow:0 4px 16px rgba(12,40,86,.06);
}

/* Controles */
.form-control, .form-select, .btn{ min-height:42px; }
.form-control:focus, .form-select:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
}

/* Mobile */
@media (max-width: 576px){
  .mlk-btn-azul{ width:100%; }
  .mlk-logo img{ height:110px; width:auto; }
}

/* ============ Modern Card (Horizontal) ============ */
.modern-card {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(12, 40, 86, 0.08);
  border-color: #CBD5E0;
}

/* Container da Imagem (Esquerda) com mais respiro */
.modern-logo-wrap {
  width: 130px; 
  height: 130px;
  flex-shrink: 0;
  background: #F8FAFC;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #F1F5F9;
}

.modern-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Tipografia do Card */
.modern-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1E293B;
  margin: 12px 0 8px 0; /* Maior espaçamento vertical */
  line-height: 1.2;
}

.modern-desc {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5; /* Altura da linha padrão */
  margin-bottom: 16px;
  
  /* TRUQUE DAS 5 LINHAS: 5 linhas * 1.5 (line-height) = 7.5em */
  height: 7.5em; 
  overflow: hidden;
  display: block; 
  /* O -webkit-line-clamp foi removido, então o '...' não vai mais aparecer, 
     mas a altura do card será sempre idêntica para todos. */
}

/* Badges Modernos */
.modern-tema-badge {
  background: #F8FAFC;
  color: #475569;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 8px;
}

.mlk-type { 
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
}

/* Botão de Ícone Sólido */
.modern-btn {
  background: #0066FF !important;
  color: #FFFFFF !important;
  border: none;
  border-radius: 10px; /* Quadrado com cantos bem arredondados */
  width: 44px;  /* Largura fixa */
  height: 44px; /* Altura fixa igual à largura */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
  padding: 0;
}

.modern-card:hover .modern-btn {
  background: #004ADD !important;
  transform: translateY(-2px) scale(1.05); /* Efeito de pular levemente */
  box-shadow: 0 6px 14px rgba(0, 102, 255, 0.4);
}

/* Ajuste Responsivo */
@media (max-width: 576px){
  .modern-logo-wrap {
    width: 100px;
    height: 100px;
  }
}