/* publicacoes.css */
:root {
    --primary-action: #1A82C4;
    --highlight-yellow: #fdd835;
    --bg-highlights: #f2f5f7;
    --text-muted: #888;
}

.publicacoes-hero {
    background-image: url(/eficiente/sites/blumenau/images/servicos-hero.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 227px;
    color: white;
    font-size: calc(42px * var(--var-fontscale));
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.publicacoes-hero .container {
    text-align: left;
    width: 100%;
}

.publicacoes-container {
    display: flex;
    gap: 40px;
    padding: 27px 0;
    text-align: left;
}

/* Sidebar */
.publicacoes-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.search-box {
    background-color: white;
    padding: 27px 21px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    margin-bottom: 16px;
}

.search-box label {
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
    color: #2c3e50;
    font-size: calc(20px * var(--var-fontscale));
    font-family: "Montserrat", sans-serif;
}

.search-input-group {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    width: 100%;
    height: 38px;
}

.search-input-group input {
    flex: 1;
    border: none;
    padding: 10.5px 16px;
    outline: none;
    font-size: calc(14px * var(--var-fontscale));
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
    color: #333;
    min-width: 0;
    border: 1px solid #c8d2db;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.search-input-group input::placeholder {
    color: #94a3b8;
    font-weight: 300;
}

.search-input-group button {
    background-color: #1A82C4;
    color: white;
    border: none;
    padding: 9px 12.5px;
    font-weight: 400;
    cursor: pointer;
    font-size: calc(14px * var(--var-fontscale));
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    width: 97px;
    line-height: 0px;
    font-family: "Montserrat", sans-serif;
}

.search-input-group button:hover {
    background-color: #1A82C4;
}

.filter-group {
    background-color: white;
    padding: 33px 21px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    font-size: calc(20px * var(--var-fontscale));
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list input[type="checkbox"],
.filter-list input[type="radio"] {
    appearance: none;
    min-width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><rect width="16" height="16" rx="2" fill="%23E5E7EB"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.filter-list input[type="checkbox"]:checked,
.filter-list input[type="radio"]:checked {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><rect width="16" height="16" rx="2" transform="matrix(1 0 -4.37114e-08 -1 6.99382e-07 16)" fill="%23016CB0"/><path d="M4 6.36364L7.55556 10L12 5" stroke="white" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.filter-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: calc(0.9rem * var(--var-fontscale));
    color: #4a5568;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: calc(16px * var(--var-fontscale));
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    color: #293B49;
}

.filter-group hr {
    margin-top: 16px;
    margin-bottom: 28px;
    border-color: #e5e7eb29;
}

.show-more {
    color: #1A82C4;
    font-size: calc(14px * var(--var-fontscale));
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
    margin-top: 10px;
}

/* Main Content */
.publicacoes-content {
    flex: 1;
}

.section-title {
    font-size: calc(32px * var(--var-fontscale));
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    color: #293B49;
    margin-bottom: 24px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #016CB0, #016CB0), linear-gradient(to right, #E1EDF6, #E1EDF6);
    background-size: 188px 100%, 100% 100%;
    background-repeat: no-repeat;
    margin-top: 8px;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: calc(14px * var(--var-fontscale));
    color: #293B49;
    padding-top: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    border-top: 1px solid #E5E7EB;
}

.sort-select {
    padding: 9px 17px;
    border: 1px solid #D1D5DC;
    border-radius: 100px;
    outline: none;
    color: #4a5568;
    background: white;
    appearance: none;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M9 4.5L6 7.5L3 4.5" stroke="%236A7282" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/></svg>'), white;
    background-size: 12px, 100%;
    background-position: right 12px center, center;
    background-repeat: no-repeat, repeat-x;
    padding-right: 30px;
}

.sort-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.publicacoes-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

/* publicacoes Card */
.publicacoes-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}


.publicacoes-card-tab {
    font-size: calc(11px * var(--var-fontscale));
    color: #293b49;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    background: #fefefe;
    display: inline-block;
    width: fit-content;
    border-top-right-radius: 14px;
    border-top-left-radius: 14px;
    border: 1px solid #D1D5DC;
    border-bottom: none;
}

.publicacoes-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: white;
    border-radius: 14px;
    border-top-left-radius: 0px;
    border: 1px solid #D1D5DC;
}

.publicacoes-card-title {
    font-size: calc(18px * var(--var-fontscale));
    font-weight: 600;
    color: #293B49;
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
}

.publicacoes-card-date {
    font-size: calc(13px * var(--var-fontscale));
    color: #6A7282;
    margin-bottom: 12px;
}

.publicacoes-card-description {
    font-size: calc(14px * var(--var-fontscale));
    color: #4A5568;
    margin-bottom: 20px;
    line-height: 1.5;
}

.publicacoes-btn-access {
    display: inline-block;
    color: #016CB0;
    text-decoration: none;
    font-weight: 600;
    font-size: calc(14px * var(--var-fontscale));
    margin-top: auto;
}

.publicacoes-btn-access:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 36px;
}

.page-num,
.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: #293B49;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: calc(14px * var(--var-fontscale));
    background-color: white;
    border: 1px solid #D1D5DC;
}

.page-link {
    border-radius: 200px;
    padding: 0px 25px;
}

.page-link.disabled {
    cursor: default;
    background-color: #F8F9FA;
    border: none;
    color: #ccc;
}

.page-num:hover:not(.active) {
    background-color: #edf2f7;
}

.page-num.active {
    background-color: #FFE156;
    color: black;
    border-color: #FFE156;
}

.footer-report {
    margin-top: 40px;
    display: flex;
}

.footer-report a {
    color: var(--primary-action);
    text-decoration: none;
    font-size: calc(18px * var(--var-fontscale));
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
}

.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.date-filter-group input {
    padding: 10px;
    border: 1px solid #D1D5DC;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
}

/* Attachments area */
.publicacoes-attachments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #D1D5DC;
}

.attachments-title {
    display: block;
    font-size: calc(13px * var(--var-fontscale));
    font-weight: 600;
    color: #293B49;
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
}

.attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachments-list li {
    display: block;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #016CB0;
    text-decoration: none;
    font-weight: 500;
    font-size: calc(14px * var(--var-fontscale));
    padding: 8px 12px;
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.attachment-link:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
    color: #0d5685;
}

.file-icon {
    flex-shrink: 0;
    color: #4A5568;
    transition: color 0.2s ease-in-out;
}

.attachment-link:hover .file-icon {
    color: #0d5685;
}

.file-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-desc {
    font-size: calc(12px * var(--var-fontscale));
    color: #6A7282;
    font-weight: 400;
}

.no-attachments {
    font-size: calc(13px * var(--var-fontscale));
    color: #A0AEC0;
    font-style: italic;
}

.show-more-attachments-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #016CB0;
    border: 1px solid #016CB0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: calc(13px * var(--var-fontscale));
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease-in-out;
    font-family: "Montserrat", sans-serif;
}

.show-more-attachments-btn:hover {
    background-color: #016CB0;
    color: white;
}