/* =====================================================================
   TWHub - Blog CSS
   Segue o design system do template (default-color.css / style.css):
   - Gradiente primario: #4688eb -> #291fbc
   - Primaria: #291fbc | Texto suave: #485974 | Fundo claro: #f6f5ff
   - Fontes: 'Source Sans Pro' (titulos) / 'Lato' (corpo)
   ===================================================================== */

/* ---------- Breadcrumb (cabecalho da pagina) ---------- */
.breadcrumb-section {
    background: #4688eb;
    background: -webkit-linear-gradient(-135deg, #4688eb 0%, #291fbc 100%);
    background: linear-gradient(-135deg, #4688eb 0%, #291fbc 100%);
    padding: 150px 0 60px;
    position: relative;
    overflow: hidden;
}
.breadcrumb-section:before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.breadcrumb-content {
    position: relative;
    z-index: 2;
}
.breadcrumb-content h2 {
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 12px;
}
.breadcrumb-content p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.breadcrumb-content p a {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding-right: 18px;
    margin-right: 6px;
    transition: color 0.2s ease;
}
.breadcrumb-content p a:not(:last-child):after {
    content: "\f105"; /* fa-angle-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 2px;
    top: 0;
    opacity: 0.6;
}
.breadcrumb-content p a:hover {
    color: #ffffff;
}

/* ---------- Fundo da secao do blog ---------- */
.section-background {
    background: #f6f5ff;
    background: -webkit-linear-gradient(top, #f6f5ff 0%, #ffffff 100%);
    background: linear-gradient(to bottom, #f6f5ff 0%, #ffffff 100%);
}

/* ---------- Card do post (lista) ---------- */
.blog-section .blog-single-content {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0px 10px 30px rgba(42, 31, 188, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-section .blog-single-content:hover {
    transform: translateY(-6px);
    box-shadow: 0px 20px 40px rgba(42, 31, 188, 0.15);
}
.blog-section .blog-thumb {
    position: relative;
    overflow: hidden;
}
.blog-section .blog-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
.blog-section .blog-single-content:hover .blog-thumb img {
    transform: scale(1.05);
}
.blog-section .blog-content {
    padding: 28px 30px 32px;
}
.blog-section .blog-content h4 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 14px;
}
.blog-section .blog-content h4 a {
    color: var(--heading-text-color);
    transition: color 0.2s ease;
}
.blog-section .blog-content h4 a:hover {
    color: #291fbc;
}
.blog-section .blog-content ul {
    margin: 0 0 14px;
    padding: 0;
}
.blog-section .blog-content ul li span,
.blog-meta li span {
    display: inline-block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #485974;
    background: #f6f5ff;
    padding: 5px 14px;
    border-radius: 30px;
}
.blog-section .blog-content ul li span i,
.blog-meta li span i {
    color: #291fbc;
    margin-right: 6px;
}
.blog-section .blog-text p {
    color: var(--body-text-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ---------- Botao "Leia Mais" ---------- */
.btn-blog-more {
    display: inline-flex;
    align-items: center;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #291fbc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.btn-blog-more i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}
.btn-blog-more:hover {
    color: #4688eb;
}
.btn-blog-more:hover i {
    transform: translateX(4px);
}

/* ---------- Paginacao ---------- */
ul.pagination.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 0;
    margin: 0;
}
ul.pagination.blog-pagination li {
    display: inline-flex;
}
ul.pagination.blog-pagination li a,
ul.pagination.blog-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: 10px;
    background: #ffffff;
    color: #485974;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    box-shadow: 0px 6px 18px rgba(42, 31, 188, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}
ul.pagination.blog-pagination li a:hover {
    background: #f6f5ff;
    color: #291fbc;
}
ul.pagination.blog-pagination li.active span {
    background: -webkit-linear-gradient(-135deg, #4688eb 0%, #291fbc 100%);
    background: linear-gradient(-135deg, #4688eb 0%, #291fbc 100%);
    color: #ffffff;
    box-shadow: 0px 8px 20px rgba(42, 31, 188, 0.35);
}
ul.pagination.blog-pagination li.disabled span {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---------- Sidebar / Widgets ---------- */
.widget-list {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 26px;
    margin-bottom: 30px;
    box-shadow: 0px 10px 30px rgba(42, 31, 188, 0.06);
}
.widget-list h4 {
    font-size: 20px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    position: relative;
}
.widget-list h4:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: -webkit-linear-gradient(left, #488fed 0%, #291fbc 100%);
    background: linear-gradient(to right, #488fed 0%, #291fbc 100%);
}

/* Pesquisar */
.widget-search form {
    position: relative;
}
.widget-search input {
    width: 100%;
    height: 52px;
    padding: 0 55px 0 18px;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    background: #f8f9fc;
    color: var(--body-text-color);
    font-family: 'Lato', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.widget-search input:focus {
    outline: none;
    border-color: #291fbc;
    background: #ffffff;
}
.widget-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    background: -webkit-linear-gradient(-135deg, #4688eb 0%, #291fbc 100%);
    background: linear-gradient(-135deg, #4688eb 0%, #291fbc 100%);
    transition: opacity 0.2s ease;
}
.widget-search button:hover {
    opacity: 0.9;
}

/* Categorias */
.widget-tags ul {
    margin: 0;
    padding: 0;
}
.widget-tags ul li {
    margin-bottom: 4px;
}
.widget-tags ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 11px 16px;
    border-radius: 10px;
    color: #485974;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}
.widget-tags ul li a:before {
    content: "\f105"; /* fa-angle-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    flex: 0 0 auto;
    margin-right: 10px;
    color: #291fbc;
    transition: transform 0.2s ease;
}
.widget-tags ul li a:hover {
    background: #f6f5ff;
    color: #291fbc;
    padding-left: 22px;
}

/* Topicos recentes */
ul.st-recent-posts {
    margin: 0;
    padding: 0;
}
.blog-latest .rp-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef0f5;
}
.blog-latest .rp-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.blog-latest .sidebar-posts {
    display: flex;
    align-items: center;
}
.blog-latest .image-left {
    flex: 0 0 72px;
    max-width: 72px;
    margin-right: 16px;
}
.blog-latest .image-left a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.blog-latest .image-left img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-latest .image-left a:hover img {
    transform: scale(1.08);
}
.blog-latest .text-box-right h6 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
}
.blog-latest .text-box-right h6 a {
    color: var(--heading-text-color);
    transition: color 0.2s ease;
}
.blog-latest .text-box-right h6 a:hover {
    color: #291fbc;
}

/* Redes sociais */
.widget-social .blog-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.widget-social .blog-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f6f5ff;
    color: #291fbc;
    font-size: 18px;
    transition: all 0.25s ease;
}
.widget-social .blog-social-links a:hover {
    background: -webkit-linear-gradient(-135deg, #4688eb 0%, #291fbc 100%);
    background: linear-gradient(-135deg, #4688eb 0%, #291fbc 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0px 10px 20px rgba(42, 31, 188, 0.25);
}

/* ---------- Pagina de detalhe do post ---------- */
.blog-detail {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(42, 31, 188, 0.08);
    margin-bottom: 40px;
}
.blog-detail .blog-thumb img {
    display: block;
    width: 100%;
    height: auto;
}
.blog-detail .blog-content {
    padding: 34px 40px 40px;
}
.blog-detail .blog-meta {
    margin: 0 0 18px;
    padding: 0;
}
.blog-detail .blog-content h4 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 22px;
}
.blog-detail .blog-text {
    color: var(--body-text-color);
    line-height: 1.8;
    font-size: 16px;
}
.blog-detail .blog-text p {
    margin-bottom: 20px;
}
.blog-detail .blog-text img {
    border-radius: 10px;
    margin: 10px 0;
}
.blog-detail .podcast-embed {
    margin: 30px 0 10px;
}

/* Tags do post */
.blog-post-tag {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eef0f5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.blog-post-tag span {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    color: var(--heading-text-color);
    margin-right: 6px;
}
.blog-post-tag a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 30px;
    background: #f6f5ff;
    color: #485974;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.2s ease;
}
.blog-post-tag a:hover {
    background: #291fbc;
    color: #ffffff;
}

/* ---------- Mensagem "nenhum registro" ---------- */
.blog-section #divpaginacao > .col-md-12 > h5 {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    color: #485974;
    box-shadow: 0px 10px 30px rgba(42, 31, 188, 0.06);
}

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
    .breadcrumb-section {
        padding: 120px 0 50px;
    }
    .breadcrumb-content h2 {
        font-size: 32px;
    }
    .blog-section .blog-thumb img {
        height: 240px;
    }
    .widget-list {
        margin-top: 0;
    }
}
@media (max-width: 575px) {
    .blog-section .blog-content,
    .blog-detail .blog-content {
        padding: 24px 20px 26px;
    }
    .blog-section .blog-content h4 {
        font-size: 20px;
    }
    .blog-detail .blog-content h4 {
        font-size: 24px;
    }
}
