/* Document List Widget */
.dlw-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dlw-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid #e8e8e8;
}

.dlw-item:first-child {
    padding-top: 0;
}

.dlw-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Thumbnail */
.dlw-thumb {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

.dlw-thumb a {
    display: block;
}

.dlw-thumb img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

/* Body */
.dlw-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

/* Title */
.dlw-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.dlw-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.25s ease;
}

.dlw-title a:hover {
    color: #1a7abf;
    text-decoration: none;
}

/* Description */
.dlw-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

/* Buttons Row */
.dlw-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.dlw-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    align-self: flex-start;
    white-space: nowrap;
    cursor: pointer;
}

.dlw-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.dlw-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dlw-btn--view:hover svg {
    transform: translateX(4px);
}

/* Download button — red filled */
.dlw-btn--download {
    background-color: #e74c3c;
    color: #ffffff;
}

.dlw-btn--download:hover {
    background-color: #c0392b;
    color: #ffffff;
}

/* View Online button — blue filled */
.dlw-btn--view {
    background-color: #2a6496;
    color: #ffffff;
}

.dlw-btn--view:hover {
    background-color: #1a4a70;
    color: #ffffff;
}

@media (max-width: 768px) {
    .dlw-thumb {
        width: 200px;
        min-width: 200px;
    }

    .dlw-thumb img {
        height: 140px;
    }
}

@media (max-width: 600px) {
    .dlw-item {
        flex-direction: column;
        gap: 16px;
    }

    .dlw-thumb {
        width: 100%;
        min-width: unset;
    }

    .dlw-thumb img {
        height: 200px;
    }
}