.publications {
    padding: 6rem 0;
}

.publications .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.publications .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.publications h2 {
    margin-right: 1.5rem;
    color: rgba(117, 125, 33, 0.8);
    color: inherit;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 2.5rem;
}

.publications h2.category {
    color: #212121;
    font-size: 2rem;
    line-height: 2.25rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.publications .list {
    display: flex;
    flex-direction: column;
}

.publications .item {
    color: rgba(117, 125, 33, 0.8);
    color: inherit;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.publications .index {
    font-size: 1rem;
    line-height: 1.5rem;
    padding-top: 6px;
    color: #212121;
    font-weight: 100;
    margin-right: 1rem;
}

.publications .content {
    flex: 1;
}

.publications .content .award {
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.publications .content h3 {
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 2.25rem;
    margin-bottom: 0.125rem;
    cursor: pointer;
}

.publications .content h3:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.publications .content .journal {
    font-size: .875rem;
    line-height: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212121;
}

.publications .content .authors {
    font-size: .875rem;
    line-height: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212121;
}


.publications .actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 15px;
    margin: 2px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    white-space: nowrap;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.88);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.publications .actions a.primary {
    color: #fff;
    background: #000;
    border: 1px solid #000;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 0 rgba(107, 44, 138, 0.1);
}

.publications .actions a.primary:hover {
    color: #fff;
    background: #555;
}

.publications .note {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(33, 33, 33, 1);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .publications {
        padding: 4rem 0;
    }

    .publications .header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .publications .header > * {
        margin-bottom: 1rem;
    }

    .publications .header > *:last-child {
        margin-bottom: 0;
    }

    .publications h2 {
        font-size: 1.75rem;
    }
    
    .publications h2.category {
        font-size: 1.5rem;
    }
    
    .publications .note {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .publications .item {
        margin-bottom: 2rem;
    }

    .publications .content h3 {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .publications .content .journal {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .publications .content .authors {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .publications .actions {
        flex-wrap: wrap;
    }

    .publications .actions a {
        flex: 1;
        min-width: 80px;
        font-size: 12px;
        padding: 4px 10px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    
    
    .publications .wrapper {
        padding: 0 1rem;
    }
    
    .publications h2 {
        font-size: 1.5rem;
    }
    
    .publications h2.category {
        font-size: 1.25rem;
    }
    
    .publications .item {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .publications .index {
        padding-top: 0;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .publications .content h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .publications .content .journal,
    .publications .content .authors {
        font-size: 0.8125rem;
        line-height: 1.3;
        margin-bottom: 0.375rem;
    }
    
    .publications .content .award {
        font-size: 0.75rem;
    }
    
    .publications .actions a {
        padding: 2px 8px;
        height: 28px;
        font-size: 11px;
    }
}

.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 200px auto;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 0 0 16px 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    color: rgba(0, 0, 0, 0.88);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    margin: 0;
}

.btn-close {
    padding: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    opacity: 1;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 100px;
    max-height: calc(90vh - 140px);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.modal-body p {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 100;
    color: rgba(0, 0, 0, 0.88);
    word-wrap: break-word;
    margin: 0;
    padding-right: 6px;
}

.modal-footer {
    padding: 10px 0 0 0;
    border-top: none;
    display: flex;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 4px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 8px;
}

.modal-footer button:first-child {
    margin-left: 0;
}

.modal-footer .btn-close {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: rgba(0, 0, 0, 0.88);
}

.modal-footer .btn-copy {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

.modal-footer button:hover {
    opacity: 0.8;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.45;
}

.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 100px auto;
        width: 95%;
    }
    
    .modal-title {
        font-size: 14px;
    }
    
    .modal-body p {
        font-size: 12px;
    }
    
    .modal-footer button {
        padding: 3px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: 80px auto;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 13px;
    }
    
    .modal-body p {
        font-size: 11px;
    }
    
    .modal-footer button {
        padding: 2px 10px;
        font-size: 11px;
    }
}

.item {
    opacity: 0;
    transform: translateY(100px); 
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.item.animate {
    opacity: 1;
    transform: translateY(0);
}