/**
 * Blog Styles — Website-Loja
 *
 * Estilos específicos para as páginas do blog: listagem, conteúdo e sidebar.
 * Cores baseadas no template principal: #fea526 (accent), #1d1e23 (dark), #808080 (muted).
 * Inclui responsividade para mobile.
 */

/* ============================================================
   INNER BANNER — Cabeçalho de páginas internas (Blog, etc.)
   ============================================================ */
.inner-banner {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 30, 35, 0.75);
    z-index: 0;
}

.inner-banner .container {
    position: relative;
    z-index: 1;
}

.inner-banner__content-wrap {
    text-align: center;
}

.inner-banner__title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ============================================================
   BREADCRUMB — Navegação de migalhas
   ============================================================ */
.thm-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.thm-breadcrumb li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.thm-breadcrumb li + li::before {
    content: '/';
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.thm-breadcrumb li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.thm-breadcrumb li a:hover {
    color: #fea526;
}

.thm-breadcrumb li.active a {
    color: #fea526;
}

/* ============================================================
   THM-BTN — Botão do tema (usado em blog cards e formulários)
   ============================================================ */
.thm-btn {
    display: inline-block;
    padding: 10px 28px;
    background-color: #fea526;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #fea526;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.thm-btn:hover {
    background-color: #1d1e23;
    border-color: #1d1e23;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   BLOG-TWO — Cards de post na listagem (grid 2 colunas)
   ============================================================ */
.blog-two {
    padding: 60px 0;
    background-color: #f9fafb;
}

/*
 * Override das cores do scheme_original (skin.css) que define
 * headings, links e textos em branco para fundo escuro (#1d1e23).
 * Aqui forçamos cores escuras para o fundo claro do blog.
 */
.blog-two h1, .blog-two h2, .blog-two h3,
.blog-two h4, .blog-two h5, .blog-two h6 {
    color: #1d1e23;
}

.blog-two a {
    color: #1d1e23;
}

.blog-two a:hover {
    color: #fea526;
}

.blog-two__single {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-two__single:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-two__image {
    position: relative;
    overflow: hidden;
}

.blog-two__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-two__single:hover .blog-two__image img {
    transform: scale(1.05);
}

.blog-two__hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 30, 35, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-two__single:hover .blog-two__hover-content {
    opacity: 1;
}

.blog-two__hover-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fea526;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.3s;
}

.blog-two__hover-content a:hover {
    background: #1d1e23;
}

.blog-two__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-two__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-two__title a {
    color: #1d1e23;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-two__title a:hover {
    color: #fea526;
}

/*
 * Override scheme_original (skin.css) que define .scheme_original h3 a { color: #fff }.
 * Especificidade: .blog-two__single .blog-two__title a = 0,3,0,1 vence 0,1,0,2 do skin.
 */
.blog-two__single .blog-two__title a {
    color: #1d1e23;
}

.blog-two__single .blog-two__title a:hover {
    color: #fea526;
}

.blog-two__single .blog-two__text,
.blog-two__single .blog-one__meta-text,
.blog-two__single .blog-one__meta-text a,
.blog-two__single .blog-one__date,
.blog-two__single .blog-one__author {
    color: #5a5c69;
}

.blog-two__single .blog-one__meta-text a:hover {
    color: #fea526;
}

.blog-two__text {
    color: #808080;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-two__btn {
    padding: 8px 22px;
    font-size: 13px;
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================================
   BLOG-ONE META — Linha de autor/data nos cards
   ============================================================ */
.blog-one__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.blog-one__meta img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-one__meta-text {
    font-size: 13px;
    color: #808080;
}

.blog-one__author,
.blog-one__date {
    color: #1d1e23;
    text-decoration: none;
    font-weight: 500;
}

.blog-one__author:hover,
.blog-one__date:hover {
    color: #fea526;
}

/* ============================================================
   CASE-DETAILS HEADER — Banner do post individual
   ============================================================ */
.case-details__header {
    position: relative;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
}

.case-details__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.case-details__header .container {
    position: relative;
    z-index: 1;
}

.case-details__header-category {
    display: inline-block;
    background: #fea526;
    color: #fff;
    padding: 4px 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.case-details__header-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 700px;
}

/* ============================================================
   HOME — Cards de blog na seção "Conteúdo em Destaque"
   Override scheme_original para .post_title h5 a / h6 a (0,1,0,2 do skin)
   ============================================================ */
.sc_recent_news .post_title a {
    color: #1d1e23;
    text-decoration: none;
}

.sc_recent_news .post_title a:hover {
    color: #fea526;
}

.sc_recent_news .post_meta a,
.sc_recent_news .post_meta_date a,
.sc_recent_news .post_meta_author {
    color: #5a5c69;
}

.sc_recent_news .post_content p {
    color: #4a4a4a;
}

.sc_recent_news .sc_recent_news_title {
    color: #1d1e23;
}

.sc_recent_news .sc_recent_news_header_category_item {
    color: #5a5c69;
}

.sc_recent_news .sc_recent_news_header_category_item:hover {
    color: #fea526;
}

/* ============================================================
   BLOG-DETAILS — Conteúdo do post individual
   ============================================================ */

/* Fundo branco para sobrescrever o body escuro (#1d1e23) do template */
.blog-details {
    background-color: #fff;
}

/*
 * Override das cores do scheme_original (skin.css) que define
 * headings (#fff), links (#fff), blockquote (#fea526 bg + #fff text),
 * strong (#b4b4b4) — tudo para fundo escuro.
 * Aqui forçamos cores legíveis para fundo branco.
 */
.blog-details h1, .blog-details h2, .blog-details h3,
.blog-details h4, .blog-details h5, .blog-details h6 {
    color: #1d1e23;
}

.blog-details a {
    color: #1d1e23;
}

.blog-details a:hover {
    color: #fea526;
}

.blog-details p,
.blog-details span,
.blog-details li,
.blog-details label {
    color: #343539;
}

.blog-details strong {
    color: #1d1e23;
}

.blog-details blockquote {
    border-left: 4px solid #fea526;
    background: #f9fafb;
    color: #555;
    font-size: 16px;
    padding: 16px 24px;
    margin: 24px 0;
    font-style: italic;
}

.blog-details blockquote::before {
    color: rgba(29, 30, 35, 0.15);
}

.blog-details blockquote p {
    color: #555;
    font-size: 16px;
    margin-bottom: 0;
}

.blog-details .form-control {
    color: #343539;
    background-color: #fff;
    border-color: #dee2e6;
}

.blog-details .form-label {
    color: #343539;
}

.blog-details .text-muted {
    color: #808080 !important;
}

.blog-details .badge {
    color: #fff;
}

.blog-details__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: #808080;
    font-size: 14px;
}

.blog-details__meta i {
    color: #fea526;
}

.blog-details__content {
    font-size: 16px;
    line-height: 1.8;
    color: #343539;
}

.blog-details__content h1,
.blog-details__content h2,
.blog-details__content h3,
.blog-details__content h4 {
    color: #1d1e23;
    margin-top: 28px;
    margin-bottom: 16px;
    font-weight: 700;
}

.blog-details__content p {
    margin-bottom: 16px;
}

.blog-details__content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

.blog-details__content blockquote {
    border-left: 4px solid #fea526;
    padding: 16px 24px;
    margin: 24px 0;
    background: #f9fafb;
    font-style: italic;
    color: #555;
    font-size: 16px;
}

/* Override do scheme_original blockquote (skin.css: bg #fea526, color #fff) */
.blog-details__content blockquote p {
    color: #555;
    font-size: 16px;
}

.blog-details__content blockquote::before {
    color: rgba(29, 30, 35, 0.15);
}

.blog-details__content ul,
.blog-details__content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.blog-details__content li {
    margin-bottom: 6px;
}

.blog-details__content a {
    color: #fea526;
    text-decoration: underline;
}

.blog-details__content a:hover {
    color: #1d1e23;
}

.blog-details__content pre,
.blog-details__content code {
    background: #f4f4f5;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 14px;
}

.blog-details__content pre {
    padding: 16px;
    overflow-x: auto;
}

.blog-details__share h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1e23;
}

/* ============================================================
   BLOG COMMENTS — Seção de comentários
   ============================================================ */
.blog-comments h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1e23;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.comment-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #eef0f3;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #d8dce3;
}

/* Avatar circular com letra inicial */
.comment-avatar-letter {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    line-height: 1;
}

/* Avatar menor para resposta da loja */
.comment-avatar-reply {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 12px;
}

.comment-body h6 {
    font-size: 15px;
    font-weight: 600;
    color: #1d1e23;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
}

/* Bloco de resposta da loja */
.comment-reply {
    background: #f8f9fc;
    border-left: 3px solid #4e73df;
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
}

.comment-form h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1e23;
}

/* ============================================================
   SIDEBAR — Barra lateral do blog (categorias, busca, recentes)
   ============================================================ */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar__single {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/*
 * Override global: scheme_original (skin.css) define h1-h6, h1 a-h6 a, a em #fff.
 * Especificidade de .scheme_original h3 a = 0,1,0,2.
 * Usamos .sidebar__single h1..h6 a = 0,2,0,1 (classes > tags) para vencer.
 */
.sidebar__single h1, .sidebar__single h2, .sidebar__single h3,
.sidebar__single h4, .sidebar__single h5, .sidebar__single h6 {
    color: #1d1e23;
}

.sidebar__single h1 a, .sidebar__single h2 a, .sidebar__single h3 a,
.sidebar__single h4 a, .sidebar__single h5 a, .sidebar__single h6 a,
.sidebar__single a {
    color: #1d1e23;
}

.sidebar__single a:hover {
    color: #fea526;
}

.sidebar__single p, .sidebar__single span, .sidebar__single li {
    color: #343539;
}

.sidebar__title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1e23;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fea526;
}

/* Busca */
.sidebar__search-form {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar__search-form input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.sidebar__search-form button {
    background: #fea526;
    color: #fff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar__search-form button:hover {
    background: #1d1e23;
}

/* Lista de categorias */
.sidebar__cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar__cat-list li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar__cat-list li:last-child {
    border-bottom: none;
}

.sidebar__cat-list li a {
    display: block;
    padding: 10px 0;
    color: #343539;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s, padding-left 0.3s;
}

.sidebar__cat-list li a:hover,
.sidebar__cat-list li a.fw-bold {
    color: #fea526;
    padding-left: 8px;
}

/* Posts recentes */
.sidebar__post-single {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar__post-single:last-child {
    border-bottom: none;
}

.sidebar__post-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Agrupa data + título verticalmente ao lado da imagem */
.sidebar__post-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.sidebar__post-date {
    display: block;
    font-size: 12px;
    color: #808080;
    margin-bottom: 2px;
}

.sidebar__post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1d1e23;
}

.sidebar__post-title a,
.sidebar .sidebar__post-title a {
    color: #1d1e23;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar__post-title a:hover,
.sidebar .sidebar__post-title a:hover {
    color: #fea526;
}

/* ============================================================
   PAGINAÇÃO — Estilo para navegação de páginas
   ============================================================ */
.blog-two .pagination .page-item.active .page-link {
    background-color: #fea526;
    border-color: #fea526;
    color: #fff;
}

.blog-two .pagination .page-link {
    color: #1d1e23;
    border-color: #e5e7eb;
}

.blog-two .pagination .page-link:hover {
    background-color: #fea526;
    border-color: #fea526;
    color: #fff;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 991px) {
    .inner-banner {
        padding: 50px 0;
    }

    .inner-banner__title {
        font-size: 28px;
    }

    .case-details__header {
        padding: 60px 0 40px;
        min-height: 250px;
    }

    .case-details__header-title {
        font-size: 24px;
    }

    .sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .inner-banner {
        padding: 40px 0;
    }

    .inner-banner__title {
        font-size: 24px;
    }

    .blog-two {
        padding: 40px 0;
    }

    .blog-two__image img {
        height: 180px;
    }

    .case-details__header {
        padding: 40px 0 30px;
        min-height: 200px;
    }

    .case-details__header-title {
        font-size: 20px;
    }

    .blog-details__content {
        font-size: 15px;
    }

    .blog-one__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
