/* ============================================================
   TRANSVALE BLOG — transvale-blog.css
   Visual fiel ao PDF. Font: MotivaSansLight
   ============================================================ */

:root {
    --tvb-blue:        #1A5EA8;
    --tvb-blue-dark:   #0D3F7A;
    --tvb-green:       #5BB85D;
    --tvb-green-dark:  #3E9940;
    --tvb-btn-green:   #27AE60;
    --tvb-text:        #222222;
    --tvb-text-soft:   #666666;
    --tvb-border:      #E2E8F0;
    --tvb-bg:          #F7F9FC;
    --tvb-white:       #FFFFFF;
    --tvb-radius:      4px;
    --tvb-font:        'MotivaSansLight', 'Segoe UI', Arial, sans-serif;
    --tvb-container:   900px;
}

.tvb-wrap *,
.tvb-single * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------
   FILTROS
------------------------------------------ */
.tvb-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tvb-border);
}

/* ================================
   GALERIA SINGLE - GRID 2x2
================================ */

.tvb-single__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.tvb-single__gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform .3s ease, box-shadow .3s ease;
}

.tvb-single__gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tvb-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.tvb-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.tvb-search {
  width: 100% !important;
  padding: 12px 45px 12px 0 !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  font-family: var(--tvb-font);
  font-size: 22px;
  color: #223F7E;
  background: transparent;
  outline: none;
}

.tvb-search-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #223F7E 0%, #1AC15C 100%);
}

.tvb-search-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #1AC15C;
  pointer-events: none;
}
.tvb-search::placeholder { color: #AAAAAA; }
.tvb-search:focus { border-color: var(--tvb-blue); }
.tvb-search-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #AAAAAA;
    pointer-events: none;
}

.tvb-select-wrap {
    position: relative;
    min-width: 170px;
}
.tvb-select {
    width: 100%;
    padding: 9px 32px 9px 14px;
    border: 0px solid var(--tvb-border);
    border-radius: var(--tvb-radius);
    font-family: var(--tvb-font);
    font-size: 18px;
    color: #002269;
    background: var(--tvb-white);
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}
.tvb-select:focus { border-color: var(--tvb-blue); }
.tvb-chevron {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #AAAAAA;
    pointer-events: none;
}

/* ------------------------------------------
   LISTA DE POSTS
------------------------------------------ */
.tvb-posts-list {
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------
   CARD
------------------------------------------ */
.tvb-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--tvb-border);
}
.tvb-card:last-child { border-bottom: none; }

.tvb-card__image-link {
    flex-shrink: 0;
    display: block;
    width: 300px;
    border-radius: var(--tvb-radius);
    overflow: hidden;
    line-height: 0;
}
.tvb-card__image {
    width: 300px;
    height: 250px !important;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.tvb-card__image-link:hover .tvb-card__image { transform: scale(1.04); }
.tvb-card__image--placeholder {
    width: 210px;
    height: 136px;
    background: var(--tvb-bg);
    border: 1px solid var(--tvb-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tvb-card__image--placeholder svg { width: 40px; height: 40px; opacity: .3; }

.tvb-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
    min-height: 136px;
}

.tvb-card__category {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--tvb-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--tvb-green);
    text-decoration: none;
    text-transform: capitalize;
    transition: color .2s;
}
.tvb-card__category:hover { color: var(--tvb-green-dark); }

.tvb-card__title {
    font-family: var(--tvb-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tvb-text);
}
.tvb-card__title a {
    color: #223F7E !important;
    text-decoration: none;
    transition: color .2s;
    font-size: 25px !important;
}
.tvb-card__title a:hover { color: var(--tvb-blue); }

.tvb-card__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 14px;
}
.tvb-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--tvb-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--tvb-blue);
    text-decoration: none;
    transition: gap .2s, color .2s;
}
.tvb-card__readmore svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform .2s; }
.tvb-card__readmore:hover { color: var(--tvb-blue-dark); gap: 9px; }
.tvb-card__readmore:hover svg { transform: translateX(2px); }

.tvb-no-posts {
    padding: 40px 0;
    text-align: center;
    color: var(--tvb-text-soft);
    font-family: var(--tvb-font);
    font-size: 15px;
}

/* ------------------------------------------
   PAGINAÇÃO
------------------------------------------ */
.tvb-pagination-wrap {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.tvb-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.tvb-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--tvb-border);
    border-radius: var(--tvb-radius);
    background: var(--tvb-white);
    font-family: var(--tvb-font);
    font-size: 14px;
    color: var(--tvb-text);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    line-height: 1;
}
.tvb-page-btn:hover { border-color: var(--tvb-blue); color: var(--tvb-blue); }
.tvb-page-btn.active { background: var(--tvb-blue); border-color: var(--tvb-blue); color: var(--tvb-white); }
.tvb-page-ellipsis {
    font-family: var(--tvb-font);
    font-size: 14px;
    color: var(--tvb-text-soft);
    padding: 0 2px;
    user-select: none;
}
.tvb-posts-list.is-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }

/* ------------------------------------------
   SINGLE POST
------------------------------------------ */
.tvb-single { font-family: var(--tvb-font); }

.tvb-single__cover {
    width: 100%;
    height: 1080px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
}
.tvb-single__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.25) 100%);
}

.tvb-single__container {
    max-width: 90%;
    margin: 0 auto;
    padding: 150px 24px 80px;
}

.tvb-single__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: var(--tvb-font);
    font-size: 13px;
    color: var(--tvb-text-soft);
    margin-bottom: 28px;
}
.tvb-single__breadcrumb a { color: var(--tvb-blue); text-decoration: none; }
.tvb-single__breadcrumb a:hover { text-decoration: underline; }

.tvb-single__article { margin-bottom: 64px; }

.tvb-single__category {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--tvb-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--tvb-green);
    text-decoration: none;
    text-transform: capitalize;
}
.tvb-single__category:hover { color: var(--tvb-green-dark); }

.tvb-single__title {
    font-family: var(--tvb-font);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--tvb-text);
    margin-bottom: 18px;
}

.tvb-single__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--tvb-border);
}
.tvb-single__date,
.tvb-single__author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--tvb-font);
    font-size: 13px;
    color: var(--tvb-text-soft);
}
.tvb-single__date svg,
.tvb-single__author svg { width: 14px; height: 14px; color: var(--tvb-blue); flex-shrink: 0; }

/* Conteúdo */
.tvb-single__content {
    font-family: var(--tvb-font);
    font-size: 15px;
    line-height: 1.85;
    color: var(--tvb-text);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.tvb-single__content * {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}
.tvb-single__content p { margin-bottom: 18px; font-weight: 600; color: #002269; font-size: 25px; }
.tvb-single__content h2 { font-size: 20px; font-weight: 700; color: var(--tvb-blue); margin: 32px 0 12px; }
.tvb-single__content h3 { font-size: 17px; font-weight: 700; color: var(--tvb-text); margin: 24px 0 10px; }
.tvb-single__content a { color: var(--tvb-blue); }
.tvb-single__content img { max-width: 100%; border-radius: var(--tvb-radius); margin: 12px 0; }
.tvb-single__content ul,
.tvb-single__content ol { padding-left: 22px; margin-bottom: 18px; }
.tvb-single__content li { margin-bottom: 6px; }

/* ------------------------------------------
   POSTS RELACIONADOS
------------------------------------------ */
.tvb-related {
    padding-top: 44px;
    border-top: 2px solid var(--tvb-border);
}
.tvb-related__title {
    font-family: var(--tvb-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--tvb-text);
    margin-bottom: 24px;
}
.tvb-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tvb-related__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tvb-border);
    border-radius: var(--tvb-radius);
    overflow: hidden;
    background: var(--tvb-white);
    transition: box-shadow .25s, transform .25s;
}
.tvb-related__card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.1); transform: translateY(-3px); }

.tvb-related__image-link { display: block; overflow: hidden; line-height: 0; }
.tvb-related__image { width: 100%; height: 130px; object-fit: cover; display: block; transition: transform .35s; }
.tvb-related__image-link:hover .tvb-related__image { transform: scale(1.05); }
.tvb-related__image--placeholder { width: 100%; height: 130px; background: var(--tvb-bg); }

.tvb-related__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.tvb-related__post-title { font-family: var(--tvb-font); font-size: 13px; font-weight: 700; line-height: 1.35; flex: 1; }
.tvb-related__post-title a { color: #223F7E; text-decoration: none; transition: color .2s; font-size: 16px; }
.tvb-related__post-title a:hover { color: var(--tvb-blue); }

.tvb-related__tag {
    display: inline-block;
    font-family: var(--tvb-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--tvb-blue);
    background: #E8F0FB;
    border-radius: 20px;
    padding: 2px 9px;
    align-self: flex-start;
}

.tvb-related__btn {
    display: block;
    padding: 7px 0;
    background: linear-gradient(90deg, #0f5bd7 0%, #32d32a 100%);
    color: var(--tvb-white);
    font-family: var(--tvb-font);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--tvb-radius);
    text-decoration: none;
    text-align: center;
    transition: background .2s;
}

/* ------------------------------------------
   RESPONSIVO
------------------------------------------ */
@media (max-width: 860px) {
    .tvb-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .tvb-single__gallery {
        grid-template-columns: 1fr;
    }
    .tvb-single__gallery img {
        height: 240px;
    }
}
@media (max-width: 640px) {
    .tvb-filters { flex-direction: column; }
    .tvb-search-wrap, .tvb-select-wrap { width: 100%; min-width: unset; }
    .tvb-card { flex-direction: column; gap: 14px; }
    .tvb-card__image-link, .tvb-card__image { width: 100%; height: 190px; }
    .tvb-card__image--placeholder { width: 100%; }
    .tvb-card__footer { justify-content: flex-start; }
    .tvb-single__cover { height: 220px; }
    .tvb-single__title { font-size: 22px; }
    .tvb-related__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tvb-single__content p { font-size: 18px; }
}
@media (max-width: 380px) {
    .tvb-related__grid { grid-template-columns: 1fr; }
}