/* Styles unique to publications.php.
   Everything shared (tokens, header, nav, drawer, footer, layout,
   cards, responsive rules) lives in style.css. */

.page-hero {
    position: relative; height: 52vh; min-height: 340px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); overflow: hidden;
}

.page-hero-bg {
    position: absolute; inset: 0;
    background: url('../../pic/ch1.jpg') center/cover no-repeat;
}

.page-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(10,33,88,0.82) 0%, rgba(26,79,160,0.60) 100%);
}

.page-hero-content {
    position: relative; z-index: 2;
    max-width: 680px; padding: 2rem;
    animation: heroUp 0.9s ease-out;
}

.page-hero-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(201,162,39,0.22);
    border: 1px solid rgba(201,162,39,0.5);
    color: var(--gold-light); font-size: 0.78rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    font-weight: 700; padding: 0.4rem 1rem;
    border-radius: 50px; margin-bottom: 1.2rem;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; line-height: 1.2; margin-bottom: 0.9rem;
}

.page-hero h1 em { color: var(--gold-light); font-style: normal; }

.page-hero p {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    opacity: 0.88; font-weight: 300; line-height: 1.7; margin-bottom: 1.75rem;
}

.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 0;
}

.breadcrumb-bar .inner {
    max-width: 1180px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; color: var(--text-muted);
}

.breadcrumb-bar a { color: var(--blue); text-decoration: none; }

.breadcrumb-bar a:hover { text-decoration: underline; }

.breadcrumb-bar i { font-size: 0.65rem; }

.publications-section {
    max-width: 1180px; margin: 0 auto;
    padding: 3rem 2rem;
}

.section-heading {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; color: var(--navy); white-space: nowrap;
}

.section-heading .heading-line {
    flex: 1; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.filter-bar {
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.filter-bar label {
    font-size: 0.83rem; font-weight: 700;
    color: var(--text-muted); white-space: nowrap;
}

.filter-bar label i { color: var(--gold); margin-right: 0.35rem; }

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--cream);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a227' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.2rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 1rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700;
    border: 1.5px solid var(--border);
    background: var(--white); color: var(--text-muted);
    text-decoration: none; cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-pill:hover, .filter-pill.active {
    background: var(--navy); color: var(--white);
    border-color: var(--navy);
}

.filter-pill i { font-size: 0.72rem; }

.publication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.pub-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex; flex-direction: column;
}

.pub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(10,33,88,0.14);
}

.pub-card-band {
    height: 5px;
}

.pub-card-band.newsletter { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.pub-card-band.magazine   { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }

.pub-card-band.bulletin   { background: linear-gradient(90deg, #1a6640, #2a9d5c); }

.pub-card-band.other      { background: linear-gradient(90deg, #6b7280, #9ca3af); }

.pub-card-body {
    padding: 1.5rem; flex: 1;
    display: flex; flex-direction: column;
}

.pub-category {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.pub-category.newsletter { color: var(--gold); }

.pub-category.magazine   { color: var(--blue); }

.pub-category.bulletin   { color: #1a6640; }

.pub-category.other      { color: #6b7280; }

.pub-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; color: var(--navy);
    margin-bottom: 0.5rem; line-height: 1.4;
}

.pub-meta {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 0.75rem; flex-wrap: wrap;
}

.pub-meta span {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; color: var(--text-muted);
}

.pub-meta i { color: var(--gold); font-size: 0.7rem; }

.pub-desc {
    font-size: 0.88rem; color: var(--text-muted);
    line-height: 1.7; flex: 1; margin-bottom: 1.25rem;
}

.pub-download {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white); font-size: 0.84rem; font-weight: 700;
    padding: 0.6rem 1.25rem; border-radius: 50px;
    text-decoration: none; align-self: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(10,33,88,0.2);
}

.pub-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,33,88,0.28); }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 3rem; color: var(--gold);
    margin-bottom: 1rem; display: block;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy); margin-bottom: 0.5rem;
}

.empty-state p { color: var(--text-muted); font-size: 0.92rem; }

@media (max-width: 720px) {
    .publication-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.85rem; }
    .publications-section { padding: 2rem 1rem; }
}
