/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

html {
    scroll-behavior: smooth;
}

body {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

section {
    scroll-snap-align: start;
}

.bn-publications-module {
    --surface: #ffffff;
    --border: #e4e1d8;
    --text-primary: #1a1814;
    --text-secondary: #6b6760;
    --accent: #3a7d44;
    --accent-light: #e8f4ea;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.10);

    max-width: 1704px;
    margin: 0 auto;

    /* Added font */
    font-family: 'Sora', sans-serif;
}

.bn-publications-module * {
    font-family: 'Sora', sans-serif;
}

/* Header */
.bn-publications-module .header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.bn-publications-module .header label {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    text-transform: uppercase;
    color: #030712;
}

/* Dropdown */
.bn-publications-module .select-wrapper {
    position: relative;
    width: 158px;
    height: 55px;
}

.bn-publications-module .year-select {
    appearance: none;
    background: var(--surface);
    border: 1px solid #7FB04F;
    border-radius: 12px;
    padding: 14px 20px 14px 20px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.bn-publications-module .year-select:focus {
    border-color: var(--accent);
}

.bn-publications-module .select-arrow {
    pointer-events: none;
    position: absolute;
    right: 25px;
    width: 20px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #7FB04F;
}

/* Empty state */
.bn-publications-module .bn-publication-empty {
    padding: 40px 20px;
    text-align: center;
    color: #57534D;
    font-size: 16px;
}

/* List */
.bn-publications-module .pub-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card */
.bn-publications-module .pub-card {
    background: #F7F7F8;
    border: 1px solid #F1F1F3;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    padding: 0;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    overflow: hidden;
    animation: bnPubFadeUp 0.4s ease both;
}

.bn-publications-module .pub-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #c8c4bb;
    transform: translateY(-2px);
}

/* Icon */
.bn-publications-module .pub-icon-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0 14px 16px;
}

.bn-publications-module .pub-icon {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-publications-module .pub-icon svg {
    width: 14px;
    height: 14px;
    color: #219FD6;
}

/* Content */
.bn-publications-module .pub-body {
    padding: 30px 145px 30px 30px;
    min-width: 0;
}

.bn-publications-module .pub-number {
    font-size: 28px;
    font-weight: 600;
    color: #030712;
    margin-bottom: 10px;
    line-height: 35px;
}

.bn-publications-module .pub-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    color: #1B250E;
    margin-bottom: 10px;
}

.bn-publications-module .pub-title a.pub-entry-link {
    color: inherit;
    text-decoration: none;
}

.bn-publications-module .pub-title a.pub-entry-link:hover {
    text-decoration: underline;
}

.bn-publications-module .pub-authors {
    font-size: 18px;
    color: #57534D;
    font-weight: 400;
    line-height: 24px;
}

.bn-publications-module .pub-authors .highlight {
    color: #7FB04F;
    font-weight: 500;
}

.bn-publications-module .pub-authors .pub-meta-sep {
    margin: 0 4px;
    color: #57534D;
}

.bn-publications-module .pub-journal {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Button */
.bn-publications-module .pub-action {
    padding: 14px 20px 14px 8px;
    flex-shrink: 0;
}

.bn-publications-module .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #7FB04F;
    color: #7FB04F;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    padding: 14px 24px 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Poppins';
    transition: all 0.2s ease;
    white-space: nowrap;
}


.bn-publications-module .download-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.bn-publications-module .download-btn:hover {
    background: #7FB04F;
    color: #ffffff;
    transform: scale(1.03);
}

/* Loading spinner */
.bn-publications-module .bn-publications-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.bn-publications-module .bn-publications-loading[hidden] {
    display: none;
}

.bn-publications-module .bn-pub-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e4e1d8;
    border-top-color: #7FB04F;
    border-radius: 50%;
    animation: bnPubSpin 0.65s linear infinite;
}

@keyframes bnPubSpin {
    to { transform: rotate(360deg); }
}

/* Results fade transition */
.bn-publications-module .bn-publications-results {
    transition: opacity 0.2s ease;
}

/* Animation */
@keyframes bnPubFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .bn-publications-module .pub-card {
        grid-template-columns: 1fr;
    }

    .bn-publications-module .pub-icon-col {
        display: none;
    }

    .bn-publications-module .pub-action {
        width: 100%;
        padding: 16px;
    }

    .bn-publications-module .download-btn {
        width: 100%;
        justify-content: center;
    }
}