/* ─── Publication Page ───────────────────────────────────────────── */

.pub-page {
    position: relative;
    background-image: url('../img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pub-page__overlay {
    position: absolute;
    inset: 0;
    background: #0000008a;
    z-index: 0;
}

.pub-page__content {
    position: relative;
    z-index: 1;
}

/* ─── Page Title ─────────────────────────────────────────────────── */
.pub-page-title {
    text-align: center;
    padding: 28px 0 20px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
    margin: 0;
}

/* ─── Special e-MHVRA Card ───────────────────────────────────────── */
.pub-special-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
    color: rgba(255,255,255,.88);
    font-size: .85rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.pub-special-card h4 {
    color: #f0c040;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.pub-special-card .pub-cat-label {
    color: #f0c040;
    font-weight: 600;
    font-size: .78rem;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-iframe-wrap {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pub-iframe-wrap iframe {
    width: 100%;
    display: block;
    border: none;
}

/* ─── Empty State ────────────────────────────────────────────────── */
.pub-empty {
    background: rgba(220,53,69,0.18);
    border: 1px solid rgba(220,53,69,.35);
    border-radius: 10px;
    color: #fff;
    padding: 14px 18px;
    font-size: .88rem;
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.pub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

.pub-widget {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.pub-widget__title {
    color: #f0c040;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-search {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
}

.pub-search input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: .82rem;
    outline: none;
}

.pub-search input::placeholder { color: rgba(255,255,255,.5); }

.pub-search button {
    background: #1a7a1a;
    border: none;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .2s;
}

.pub-search button:hover { background: #145e14; }

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

.pub-cat-list li a {
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background .2s, border-color .2s;
}

.pub-cat-list li a:hover {
    background: rgba(26,122,26,0.35);
    border-color: rgba(26,122,26,0.6);
    color: #fff;
}

.pub-cat-list .cat-count {
    background: #1a7a1a;
    color: #fff;
    border-radius: 20px;
    padding: 1px 10px;
    font-size: .72rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

/* ─── Pagination ─────────────────────────────────────────────────── */
.pub-pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    border: 1px solid #1a7a1a;
    background: #1a7a1a;
    color: #fff;
    font-size: .8rem;
}

.pub-pagination .page-link:hover {
    background: #145e14;
    border-color: #145e14;
    color: #fff;
}

.pub-pagination .page-item.active .page-link {
    background: #f0a500;
    border-color: #f0a500;
    color: #fff;
}

.pub-pagination .page-item.disabled .page-link {
    background: #555;
    border-color: #555;
    color: #aaa;
    opacity: 1;
}
