/* ==========================================================================
   Relatórios / Relações Trabalhistas
   ========================================================================== */

/* Banner do topo da página interna */
.page-banner {
    width: 100%;
    height: 320px;
    margin-top: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.25)
        ),
        url('../../img/banner-topo2.jpg');
    background-size: cover;
    background-position: center;
}

.page-banner-content {
    width: 100%;
    max-width: 1280px;
    color: #ffffff;
    padding-top: 40px;
}

.page-banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.page-banner-content h1 span {
    display: block;
    font-weight: 400;
}

.page-banner-content p {
    max-width: 620px;
    margin: 16px 0 0 0;
    font-size: 16px;
    color: #ffffffcc;
}

/* Conteúdo */
.page-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 16px 72px 16px;
}

.page-intro {
    font-size: 14px;
    color: #4a4a4a;
    max-width: 860px;
    margin-bottom: 48px;
}

.page-intro p {
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.page-intro strong {
    font-weight: 700;
    color: #131618;
}

.page-intro h2 {
    font-size: 16px;
    font-weight: 700;
    color: #131618;
    margin: 28px 0 8px 0;
}

.page-intro-contact {
    margin-top: 24px !important;
    padding-left: 12px;
    border-left: 3px solid #5070E3;
}

.page-intro-contact a {
    color: #5070E3;
    font-weight: 700;
    text-decoration: none;
}

.page-intro-contact a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Navegação por ano
   -------------------------------------------------------------------------- */
.year-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.year-nav-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: #131618;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.year-nav-arrow:hover:not(:disabled) {
    background-color: #5070E31a;
    color: #5070E3;
}

.year-nav-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.year-nav-track {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.year-nav-track::-webkit-scrollbar {
    display: none;
}

.year-tab {
    flex: 1 0 auto;
    min-width: 120px;
    padding: 12px 8px;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #9a9a9a;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px;
}

.year-tab:hover {
    color: #5070E3;
}

.year-tab.active {
    color: #131618;
    font-weight: 700;
    border-bottom-color: #131618;
}

/* --------------------------------------------------------------------------
   Linha do tempo
   -------------------------------------------------------------------------- */
.year-panel {
    padding: 32px 0 8px 0;
}

/* Sem JavaScript todos os painéis ficam visíveis; o JS marca o container
   com .js-tabs e passa a exibir apenas o ano selecionado. */
.js-tabs .year-panel {
    display: none;
}

.js-tabs .year-panel.active {
    display: block;
}

.timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding: 0 0 24px 0;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #5070E3;
    box-shadow: 0 0 0 4px #5070E326;
}

.timeline-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-left: 3px solid #5070E3;
    background-color: #f7f8fa;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.timeline-card:hover {
    background-color: #eef1fb;
    transform: translateX(4px);
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-period {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5070E3;
}

.timeline-title {
    font-size: 16px;
    color: #131618;
    margin: 0;
}

.timeline-meta {
    font-size: 12px;
    color: #838383;
}

.timeline-download {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #5070E3;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.timeline-download:hover {
    background-color: #6384fc;
    color: #ffffff;
}

.timeline-download svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .page-banner {
        height: 260px;
        margin-top: 56px;
    }

    .page-banner-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 32px 16px 48px 16px;
    }

    .year-tab {
        min-width: 90px;
        font-size: 16px;
    }

    .timeline-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-card:hover {
        transform: none;
    }

    .timeline-download {
        width: 100%;
        justify-content: center;
    }
}
