/* ================================================================
   Multionic Child — blog.css
   Estilos da área de blog: lista, cards e single post
   ================================================================ */

/* ---- Hero do Blog ---- */
.mto-blog-hero {
    position:   relative;
    height:     500px;
    display:    flex;
    align-items: center;
    overflow:   hidden;
    background: var(--mto-primary-dark);
}
.mto-blog-hero-img {
    position:        absolute;
    inset:           0;
    width:           100%;
    height:          100%;
    object-fit:      cover;
    object-position: center;
    z-index:         0;
    animation:       mto-hero-fade 1s ease both;
}
.mto-blog-hero-overlay {
    position:   absolute;
    inset:      0;
    background: linear-gradient(to right, rgba(1,68,134,0.85) 0%, rgba(59,82,155,0.65) 100%);
    z-index:    1;
}
.mto-blog-hero-content {
    position:    relative;
    z-index:     2;
    align-items: center;
    gap:         48px;
    width:       100%;
}
.mto-blog-hero-content:not(.mto-blog-hero-content--two-col) {
    /* max-width: 680px; */
}
/* Com imagem lateral — duas colunas */
.mto-blog-hero-content--two-col {
    justify-content: space-between;
}
.mto-blog-hero-texto {
    display:        flex;
    flex-direction: column;
    flex:           1;
    max-width:      600px;
}
.mto-blog-hero-img-dir-wrap {
    flex-shrink: 0;
    width:       380px;
    max-width:   40%;
    animation:   mto-hero-fade-up 0.6s cubic-bezier(0.4,0,0.2,1) 0.4s both;
}
.mto-blog-hero-img-dir {
    width:      100%;
    height:     320px;
    object-fit: cover;
    display:    block;
}
@media (max-width: 768px) {
    .mto-blog-hero-img-dir-wrap { display: none; }
    .mto-blog-hero-content--two-col { max-width: 100%; }
}
.mto-blog-hero-badge {
    font-size:      10px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color:          rgba(255,255,255,0.90);
    margin-bottom:  12px;
    animation:      mto-hero-fade-up 0.6s cubic-bezier(0.4,0,0.2,1) 0.1s both;
}
@media (min-width: 768px) { .mto-blog-hero-badge { font-size: 14px; } }

.mto-blog-hero-titulo {
    font-size:      clamp(32px, 4.5vw, 52px);
    font-weight:    700;
    color:          #fff;
    text-transform: uppercase;
    line-height:    1.1;
    letter-spacing: -0.02em;
    margin-bottom:  20px;
    animation:      mto-hero-fade-up 0.6s cubic-bezier(0.4,0,0.2,1) 0.2s both;
}
.mto-blog-hero-desc {
    font-size:   clamp(16px, 1.8vw, 19px);
    color:       rgba(255,255,255,0.85);
    font-weight: 500;
    line-height: 1.65;
    max-width:   560px;
    animation:   mto-hero-fade-up 0.6s cubic-bezier(0.4,0,0.2,1) 0.35s both;
}

/* ---- Lista de posts ---- */

.mto-blog-lista {
    padding-block: 80px;
    background: var(--mto-bg-light);
}

.mto-blog-header {
    text-align:    center;
    margin-bottom: 48px;
}
.mto-blog-titulo {
    font-size:      clamp(28px, 3.5vw, 40px);
    font-weight:    700;
    color:          var(--mto-primary);
    text-transform: uppercase;
    margin-bottom:  12px;
}
.mto-blog-subtitulo {
    font-size:  18px;
    color:      var(--mto-text-light);
    max-width:  560px;
    margin:     0 auto;
    line-height: 1.6;
}

/* ---- Abas de categorias ---- */
.mto-blog-cats {
    display:         flex;
    flex-wrap:       wrap;
    gap:             8px;
    margin-bottom:   48px;
    padding-bottom:  24px;
    border-bottom:   2px solid #e5e7eb;
}
.mto-blog-cat {
    padding:         8px 20px;
    font-size:       13px;
    font-weight:     600;
    text-transform:  uppercase;
    letter-spacing:  0.05em;
    color:           var(--mto-text-light);
    text-decoration: none;
    border:          1px solid #d1d5db;
    background:      #fff;
    transition:      all 0.2s ease;
}
.mto-blog-cat:hover,
.mto-blog-cat--ativa {
    background: var(--mto-primary);
    color:      #fff;
    border-color: var(--mto-primary);
}

/* ---- Grid de cards ---- */
.mto-blog-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap:                   32px;
    margin-bottom:         64px;
}

.mto-blog-card {
    background:     #fff;
    display:        flex;
    flex-direction: column;
    transition:     transform 0.2s ease, box-shadow 0.2s ease;
}
.mto-blog-card:hover {
    transform:  translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.mto-blog-card-thumb-link { display: block; overflow: hidden; }
.mto-blog-card-thumb {
    aspect-ratio: 16/9;
    overflow:     hidden;
}
.mto-blog-card-thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mto-blog-card:hover .mto-blog-card-thumb img {
    transform: scale(1.04);
}

.mto-blog-card-body {
    padding:        24px;
    display:        flex;
    flex-direction: column;
    flex-grow:      1;
}
.mto-blog-card-meta {
    display:        flex;
    align-items:    center;
    gap:            12px;
    margin-bottom:  12px;
}
.mto-blog-card-cat {
    font-size:      11px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:          var(--mto-secondary);
}
.mto-blog-card-data {
    font-size: 12px;
    color:     var(--mto-text-light);
}
.mto-blog-card-titulo {
    font-size:     18px;
    font-weight:   700;
    line-height:   1.35;
    margin-bottom: 12px;
    flex-grow:     1;
}
.mto-blog-card-titulo a {
    color:           var(--mto-primary-dark);
    text-decoration: none;
}
.mto-blog-card-titulo a:hover { color: var(--mto-secondary); }

.mto-blog-card-excerpt {
    font-size:     14px;
    color:         var(--mto-text-light);
    line-height:   1.6;
    margin-bottom: 20px;
}
.mto-blog-card-link {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    font-size:       13px;
    font-weight:     700;
    color:           var(--mto-secondary);
    text-decoration: none;
    text-transform:  uppercase;
    letter-spacing:  0.05em;
    margin-top:      auto;
}
.mto-blog-card-link:hover { color: var(--mto-primary); }

/* ---- Paginação ---- */
.mto-blog-paginacao {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    flex-wrap:       wrap;
}
.mto-blog-pag-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    padding:         10px 20px;
    font-size:       13px;
    font-weight:     600;
    color:           var(--mto-primary);
    text-decoration: none;
    border:          1px solid var(--mto-primary);
    transition:      all 0.2s ease;
}
.mto-blog-pag-btn:hover {
    background: var(--mto-primary);
    color:      #fff;
}
.mto-blog-pag-nums { display: flex; gap: 4px; }
.mto-blog-pag-num {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           40px;
    height:          40px;
    font-size:       14px;
    font-weight:     600;
    color:           var(--mto-text-main);
    text-decoration: none;
    border:          1px solid #e5e7eb;
    transition:      all 0.2s ease;
}
.mto-blog-pag-num:hover,
.mto-blog-pag-num--ativa {
    background:   var(--mto-primary);
    color:        #fff;
    border-color: var(--mto-primary);
}

/* ---- Estado vazio ---- */
.mto-blog-empty {
    text-align: center;
    padding:    80px 0;
    color:      var(--mto-text-light);
    font-size:  18px;
}

/* ================================================================
   Single Post
   ================================================================ */

/* Hero do artigo */
.mto-single-hero {
    position:    relative;
    height:      500px;
    display:     flex;
    align-items: center;
    overflow:    hidden;
    background:  var(--mto-primary-dark);
}
.mto-single-hero-img {
    position:        absolute;
    inset:           0;
    width:           100%;
    height:          100%;
    object-fit:      cover;
    object-position: center;
    z-index:         0;
    animation:       mto-hero-fade 1s ease both;
}
.mto-single-hero-overlay {
    position:   absolute;
    inset:      0;
    background: linear-gradient(to right, rgba(1,68,134,0.85) 0%, rgba(59,82,155,0.60) 100%);
    z-index:    1;
}
.mto-single-hero-inner {
    position:   relative;
    z-index:    2;
    padding-top: 80px;
    /* max-width: 800px; */
    width:      100%;
}

.mto-single-meta {
    display:        flex;
    align-items:    center;
    gap:            16px;
    margin-bottom:  20px;
    flex-wrap:      wrap;
}
.mto-single-cat {
    font-size:       11px;
    font-weight:     700;
    text-transform:  uppercase;
    letter-spacing:  0.08em;
    color:           var(--mto-secondary);
    text-decoration: none;
    background:      rgba(255,255,255,0.1);
    padding:         4px 12px;
}
.mto-single-data,
.mto-single-tempo {
    font-size: 13px;
    color:     rgba(255,255,255,0.65);
}

.mto-single-titulo {
    font-size:     clamp(28px, 4vw, 48px);
    font-weight:   700;
    color:         #fff;
    line-height:   1.2;
    margin-bottom: 20px;
}
.mto-single-excerpt {
    font-size:     18px;
    color:         rgba(255,255,255,0.80);
    line-height:   1.65;
    max-width:     680px;
    margin-bottom: 28px;
}
.mto-single-autor {
    display:     flex;
    align-items: center;
    gap:         12px;
}
.mto-single-autor-avatar {
    width:         40px !important;
    height:        40px !important;
    border-radius: 50%;
}
.mto-single-autor-nome {
    font-size:   14px;
    font-weight: 600;
    color:       rgba(255,255,255,0.85);
}

/* Thumbnail destacada */
.mto-single-thumb {
    background: var(--mto-primary);
    padding-bottom: 0;
}
.mto-single-thumb-img {
    width:       100%;
    max-height:  480px;
    object-fit:  cover;
    display:     block;
}

/* Layout conteúdo + sidebar */
.mto-single-content-wrap {
    padding-block: 64px;
    background:    #fff;
}
.mto-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap:     64px;
    align-items: start;
}
@media (max-width: 1024px) {
    .mto-single-layout { grid-template-columns: 1fr; }
}

/* Conteúdo do artigo */
.mto-single-content {
    font-size:   16px;
    line-height: 1.75;
    color:       var(--mto-text-main);
    max-width:   680px;
}
.mto-single-content h2 {
    font-size:     24px;
    font-weight:   700;
    color:         var(--mto-primary-dark);
    margin-top:    40px;
    margin-bottom: 16px;
}
.mto-single-content h3 {
    font-size:     20px;
    font-weight:   700;
    color:         var(--mto-primary-dark);
    margin-top:    32px;
    margin-bottom: 12px;
}
.mto-single-content p { margin-bottom: 20px; }
.mto-single-content ul,
.mto-single-content ol {
    margin-bottom: 20px;
    padding-left:  24px;
}
.mto-single-content li { margin-bottom: 8px; }
.mto-single-content img {
    max-width:     100%;
    height:        auto;
    margin-block:  24px;
}
.mto-single-content a {
    color:           var(--mto-secondary);
    text-decoration: underline;
}
.mto-single-content blockquote {
    border-left:  4px solid var(--mto-secondary);
    margin-left:  0;
    padding:      16px 24px;
    background:   var(--mto-bg-light);
    font-style:   italic;
    color:        var(--mto-text-light);
    margin-block: 24px;
}

/* Sidebar */
.mto-single-sidebar { position: sticky; top: 100px; }

.mto-single-relacionados { margin-bottom: 32px; }
.mto-single-relacionados-titulo {
    font-size:      13px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:          var(--mto-text-light);
    margin-bottom:  16px;
    padding-bottom: 12px;
    border-bottom:  1px solid #e5e7eb;
}
.mto-single-rel-item {
    display:         flex;
    gap:             12px;
    padding-block:   12px;
    border-bottom:   1px solid #f3f4f6;
    text-decoration: none;
    align-items:     center;
}
.mto-single-rel-item:last-child { border-bottom: none; }
.mto-single-rel-thumb {
    width:      64px;
    min-width:  64px;
    height:     48px;
    overflow:   hidden;
}
.mto-single-rel-thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
}
.mto-single-rel-titulo {
    display:     block;
    font-size:   13px;
    font-weight: 600;
    color:       var(--mto-primary-dark);
    line-height: 1.35;
    margin-bottom: 4px;
}
.mto-single-rel-item:hover .mto-single-rel-titulo { color: var(--mto-secondary); }
.mto-single-rel-data {
    font-size: 11px;
    color:     var(--mto-text-light);
}

.mto-single-cta-box {
    background: var(--mto-primary);
    padding:    24px;
}
.mto-single-cta-texto {
    font-size:     15px;
    color:         rgba(255,255,255,0.90);
    margin-bottom: 16px;
    line-height:   1.5;
}

/* Navegação entre posts */
.mto-single-nav {
    background:    var(--mto-bg-light);
    padding-block: 48px;
    border-top:    1px solid #e5e7eb;
}
.mto-single-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:     32px;
}
@media (max-width: 640px) {
    .mto-single-nav-grid { grid-template-columns: 1fr; }
}
.mto-single-nav-item {
    display:         flex;
    flex-direction:  column;
    gap:             8px;
    text-decoration: none;
    padding:         20px;
    border:          1px solid #e5e7eb;
    background:      #fff;
    transition:      border-color 0.2s ease;
}
.mto-single-nav-item:hover { border-color: var(--mto-secondary); }
.mto-single-nav-next { text-align: right; }
.mto-single-nav-label {
    display:        flex;
    align-items:    center;
    gap:            6px;
    font-size:      11px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:          var(--mto-text-light);
}
.mto-single-nav-next .mto-single-nav-label { justify-content: flex-end; }
.mto-single-nav-titulo {
    font-size:   15px;
    font-weight: 600;
    color:       var(--mto-primary-dark);
    line-height: 1.3;
}